lkml.org 
[lkml]   [2016]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectlinux-4.7-rc2/drivers/video/fbdev/intelfb/intelfbdrv.c:1041]: (style) Redundant condition
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

\
 
 \ /
  Last update: 2016-06-07 18:01    [W:0.092 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site