projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb9e875
)
drm/i915: Remove pointless if-else from sdvo code
author
Ville Syrjälä
<
[email protected]
>
Thu, 21 Jun 2018 17:46:58 +0000
(20:46 +0300)
committer
Ville Syrjälä
<
[email protected]
>
Thu, 5 Jul 2018 19:16:56 +0000
(22:16 +0300)
The return value is a bool so we can just return the result of
the biwise AND. The compiler will take care of the rest.
Signed-off-by: Ville Syrjälä <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Chris Wilson <
[email protected]
>
drivers/gpu/drm/i915/intel_sdvo.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_sdvo.c
b/drivers/gpu/drm/i915/intel_sdvo.c
index 36f81a96b8f642129f96fe085b00566a20ca2b73..5417c54f67da616b580eb9e4b53b1286a20b5cf9 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_sdvo.c
+++ b/
drivers/gpu/drm/i915/intel_sdvo.c
@@
-1401,10
+1401,7
@@
static bool intel_sdvo_connector_get_hw_state(struct intel_connector *connector)
intel_sdvo_get_active_outputs(intel_sdvo, &active_outputs);
- if (active_outputs & intel_sdvo_connector->output_flag)
- return true;
- else
- return false;
+ return active_outputs & intel_sdvo_connector->output_flag;
}
bool intel_sdvo_port_enabled(struct drm_i915_private *dev_priv,