Message ID | 1437138274-23146-1-git-send-email-antoine.blin@lip6.fr (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Jul 17, 2015 at 03:04:33PM +0200, Antoine BLIN wrote: > Fix up "return is not a function, parentheses are not required" error found by > the checkpatch.pl script. > > Signed-off-by: Antoine BLIN <antoine.blin@lip6.fr> > --- > drivers/staging/sm750fb/ddk750_power.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Someone else already sent this fix in just before you did, sorry. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/staging/sm750fb/ddk750_power.c b/drivers/staging/sm750fb/ddk750_power.c index c8c51be..3c04447 100644 --- a/drivers/staging/sm750fb/ddk750_power.c +++ b/drivers/staging/sm750fb/ddk750_power.c @@ -20,7 +20,7 @@ unsigned int getPowerMode(void) { if (getChipType() == SM750LE) return 0; - return (FIELD_GET(PEEK32(POWER_MODE_CTRL), POWER_MODE_CTRL, MODE)); + return FIELD_GET(PEEK32(POWER_MODE_CTRL), POWER_MODE_CTRL, MODE); }
Fix up "return is not a function, parentheses are not required" error found by the checkpatch.pl script. Signed-off-by: Antoine BLIN <antoine.blin@lip6.fr> --- drivers/staging/sm750fb/ddk750_power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)