[U-Boot] cmd: gpio: Remove dead code from do_gpio

Tom Rini trini at konsulko.com
Tue Jun 19 18:40:15 UTC 2018


On Wed, Jun 13, 2018 at 03:06:49PM +0200, Michal Simek wrote:

> gpio input/set/clear and toggle commands are already cover that's why
> there is no any other case which should be handled.
> 
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>
> ---
> 
> Reported by: Coverity (local)
> Not sure how to report this properly without CID

NAK.  This raises:
w+(e2220-1170) ../cmd/gpio.c: In function 'do_gpio':
w+(e2220-1170) ../cmd/gpio.c:199:3: warning: enumeration value 'GPIO_INPUT' not handled in switch [-Wswitch]

For all platforms that use cmd/gpio.c

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180619/4282e05d/attachment.sig>


More information about the U-Boot mailing list