projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
295ee85
)
drm: Don't return 0 for a value used as a denominator
author
Damien Lespiau
<damien.lespiau@intel.com>
Fri, 8 Aug 2014 17:50:18 +0000
(18:50 +0100)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Thu, 14 Aug 2014 19:24:29 +0000
(21:24 +0200)
Static analysis will be unhappy if a function can theoretically return
0 and we're trying to divide by that value.
Mark that case that cannot occur as a BUG() instead.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_dp_mst_topology.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_dp_mst_topology.c
b/drivers/gpu/drm/drm_dp_mst_topology.c
index 352f5d6c763ccb6f42888a33b7fa1cb4396d5aad..b3adf14450205db60941bd22554c9a5ecf00ba09 100644
(file)
--- a/
drivers/gpu/drm/drm_dp_mst_topology.c
+++ b/
drivers/gpu/drm/drm_dp_mst_topology.c
@@
-1772,7
+1772,7
@@
static int drm_dp_get_vc_payload_bw(int dp_link_bw, int dp_link_count)
case DP_LINK_BW_5_4:
return 10 * dp_link_count;
}
-
return 0
;
+
BUG()
;
}
/**