misc: mic: scif: scif_api: Remove set but unused variable 'read_size'
authorLee Jones <lee.jones@linaro.org>
Wed, 1 Jul 2020 08:31:06 +0000 (09:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Jul 2020 13:08:04 +0000 (15:08 +0200)
commitcf2a06c133ddb07d90af78569f5d3e0551cfde7f
tree7be5e732a4abfee5ea1bce0fd1faea5d0fcdf462
parenta761b8b00c6cde8f20cdcafdfba685118f2832e3
misc: mic: scif: scif_api: Remove set but unused variable 'read_size'

'read_size' appears to have been assigned, but never used since the
SCIF messaging and node enumeration APIs were introduced in 2015.
Makes sense to simply remove it.

Fixes the following W=1 warning:

 drivers/misc/mic/scif/scif_api.c: In function ‘_scif_recv’:
 drivers/misc/mic/scif/scif_api.c:1000:6: warning: variable ‘read_size’ set but not used [-Wunused-but-set-variable]
 1000 | int read_size;
 | ^~~~~~~~~

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20200701083118.45744-19-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/scif/scif_api.c