staging: comedi: usbdux: remove redundant initialization of val
authorColin Ian King <colin.king@canonical.com>
Tue, 7 Nov 2017 19:07:24 +0000 (19:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:20:40 +0000 (09:20 +0100)
commitbc4eec76e66ec5c53b93f9ee0b0a1689f7307ce5
tree340472fe017634a04aae604026ff805448356de8
parentd69b9c3884bf9dceab7d971eaab7a89887b60378
staging: comedi: usbdux: remove redundant initialization of val

The early initialization of val is redundant as the value is never
read and is updated inside a for-loop. Remove the initialization
and move the declaration and initialization to the for-loop scope.
Cleans up clang warning:

drivers/staging/comedi/drivers/usbdux.c:812:15: warning: Value stored
to 'val' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/usbdux.c