Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1416313 > unrolled thread
| Started by | David Binderman <linuxdev.baldrick@gmail.com> |
|---|---|
| First post | 2016-06-07 17:30 +0200 |
| Last post | 2016-06-07 17:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
linux-4.7-rc2/drivers/video/fbdev/intelfb/intelfbdrv.c:1041]: (style) Redundant condition David Binderman <linuxdev.baldrick@gmail.com> - 2016-06-07 17:30 +0200
| From | David Binderman <linuxdev.baldrick@gmail.com> |
|---|---|
| Date | 2016-06-07 17:30 +0200 |
| Subject | linux-4.7-rc2/drivers/video/fbdev/intelfb/intelfbdrv.c:1041]: (style) Redundant condition |
| Message-ID | <rHr74-4oQ-9@gated-at.bofh.it> |
Hello there,
linux-4.7-rc2/drivers/video/fbdev/intelfb/intelfbdrv.c:1041]: (style)
Redundant condition: If 'msrc > 1', the comparison 'msrc' is always
true.
Source code is
if (msrc && msrc > 1) {
Maybe better code
if (msrc > 1) {
Regards
David Binderman
Back to top | Article view | linux.kernel
csiph-web