Re: [PATCH] staging: comedi: usbdux: remove redundant initialization of val

2017-11-08 Thread Ian Abbott
On 07/11/17 19:07, Colin King wrote: From: Colin Ian King 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/stag

[PATCH] staging: comedi: usbdux: remove redundant initialization of val

2017-11-07 Thread Colin King
From: Colin Ian King 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: war