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

Configure Feed

Select the types of activity you want to include in your feed.

iio: buffer: Remove redundant assignment to in_loc

Variable in_loc is being assigned a value from a calculation
however the assignment is never read, so this redundant assignment
can be removed.

Clean up the following clang-analyzer warning:

drivers/iio/industrialio-buffer.c:929:3: warning: Value stored to
'in_loc' is never read [clang-analyzer-deadcode.DeadStores].

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://lore.kernel.org/r/1621246317-62725-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Jiapeng Chong and committed by
Jonathan Cameron
e50f8e04 af51ec8c

-1
-1
drivers/iio/industrialio-buffer.c
··· 926 926 if (ret) 927 927 goto error_clear_mux_table; 928 928 out_loc += length; 929 - in_loc += length; 930 929 } 931 930 buffer->demux_bounce = kzalloc(out_loc, GFP_KERNEL); 932 931 if (buffer->demux_bounce == NULL) {