diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-02-05 19:04:36 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-18 19:17:11 +0100 |
commit | 57a9e5053c7c51c0fbf152b36ca74b997da2f77f (patch) | |
tree | 9d21b044fca93443f42d92db3b7f32a5a4652f2d /drivers/comedi | |
parent | Merge 6.8-rc3 into char-misc-next (diff) | |
download | linux-57a9e5053c7c51c0fbf152b36ca74b997da2f77f.tar.xz linux-57a9e5053c7c51c0fbf152b36ca74b997da2f77f.zip |
comedi: remove redundant assignment to variable range
The variable range is being initialized with a value that is never
read, it is being re-assigned later on. The initialization is
redundant and can be removed.
Cleans up clang scan build warning:
drivers/comedi/drivers/das08.c:180:2: warning: Value stored
to 'range' is never read [deadcode.DeadStores]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20240205180436.1841706-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/comedi')
-rw-r--r-- | drivers/comedi/drivers/das08.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/comedi/drivers/das08.c b/drivers/comedi/drivers/das08.c index 5d5b9174f88a..49944ce1f813 100644 --- a/drivers/comedi/drivers/das08.c +++ b/drivers/comedi/drivers/das08.c @@ -177,7 +177,6 @@ static int das08_ai_insn_read(struct comedi_device *dev, int ret; chan = CR_CHAN(insn->chanspec); - range = CR_RANGE(insn->chanspec); /* clear crap */ inb(dev->iobase + DAS08_AI_LSB_REG); |