[PATCH 2/2] ARM: mx5/mx53_evk: Remove unneeded gpio_set_value call

Wolfram Sang w.sang at pengutronix.de
Sun Mar 20 17:30:45 EDT 2011


On Sun, Mar 20, 2011 at 09:51:32PM +0100, Julia Lawall wrote:
> I guess that the !GPIOLIB issue is related to a configuration option, that 
> can't very easily be detected from looking at the C file alone?

Yes, that is a configuration option at the moment. It shouldn't be IMO, that's
what my patch is addressing.

> Ignoring that issue, the following semantic patch addresses the common 

Sigh, here goes my chance to play with coccinelle again ;)

> case where there is no error checking for the input or output call, but 
> there may be error checking for the gpio_request call.  This transforms 
> over 500 occurrences.

In my book, converting the ones which do not check errors at all is not worth
the trouble. Proper error-checking should be the main benefit, not one saved
line. So, this is mindwork. If gpio_request is checked, merging seems sensible
(but should be audited).

Regards,

   Wolfram

-- 
Pengutronix e.K.                           | Wolfram Sang                |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110320/a9fbf2da/attachment.sig>


More information about the linux-arm-kernel mailing list