Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: comedi: dt2811: remove redundant initialization of 'ns'

Variable ns is being initialized with a value that is never read, ns
is being re-assigned a new value later on. Remove the redundant
initialization.

Cleans up clang warning:
drivers/staging/comedi/drivers/dt2811.c:310:21: warning: Value stored
to 'ns' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
d8bc23d3 387fbf00

+1 -1
+1 -1
drivers/staging/comedi/drivers/dt2811.c
··· 307 307 static unsigned int dt2811_ns_to_timer(unsigned int *nanosec, 308 308 unsigned int flags) 309 309 { 310 - unsigned long long ns = *nanosec; 310 + unsigned long long ns; 311 311 unsigned int ns_lo = COMEDI_MIN_SPEED; 312 312 unsigned int ns_hi = 0; 313 313 unsigned int divisor_hi = 0;