[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150706073257.GB28762@mwanda>
Date: Mon, 6 Jul 2015 10:32:57 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Arjun Krishna Babu <arjunkrishnababu96@...il.com>
Cc: lidza.louina@...il.com, markh@...pro.net,
devel@...verdev.osuosl.org, gregkh@...uxfoundation.org,
driverdev-devel@...uxdriverproject.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: dgnc: Replace macro with flow control statement
by a function
On Sun, Jul 05, 2015 at 11:46:28PM +0530, Arjun Krishna Babu wrote:
> This patch fixes the checkpatch.pl warning:
>
> WARNING: Macros with flow control statements should be avoided
>
> Replace the macro with a function doing the exact same task as the
> macro.
>
No. You haven't understood what DGNC_VERIFY_BOARD() does and have you
even tried to compile this? Surely the compiler will complain that some
paths don't have a return value?
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists