staging: comedi: tests: ni_routes_test: Remove unused variable 'olddevroutes'
authorQiheng Lin <linqiheng@huawei.com>
Sat, 10 Apr 2021 06:49:32 +0000 (14:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Apr 2021 08:29:28 +0000 (10:29 +0200)
commit32abcac8037da5dc570c22abf266cbb92eee9fc9
treeb6f889719654f3bb67b82e1bb96141f86e489d76
parent3eea531bcc24aee8f93b206adfde605fdd6f3d44
staging: comedi: tests: ni_routes_test: Remove unused variable 'olddevroutes'

GCC reports the following warning with W=1:

drivers/staging/comedi/drivers/tests/ni_routes_test.c:215:45: warning:
 variable 'olddevroutes' set but not used [-Wunused-but-set-variable]
  215 |  const struct ni_device_routes *devroutes, *olddevroutes;
      |                                             ^~~~~~~~~~~~

This variable is not used in function , this commit
remove it to fix the warning.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qiheng Lin <linqiheng@huawei.com>
Link: https://lore.kernel.org/r/20210410064932.12905-1-linqiheng@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/tests/ni_routes_test.c