mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
w1: remove redundant initialization to variable result
The variable result is being initialized with a value that is never
read, it is being updated later on. The assignment is redundant and
can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210721103451.43026-1-colin.king@canonical.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
This commit is contained in:
parent
a8c4dda941
commit
9033ff4c0f
|
|
@ -491,7 +491,7 @@ static ssize_t w1_master_attribute_store_remove(struct device *dev,
|
|||
struct w1_master *md = dev_to_w1_master(dev);
|
||||
struct w1_reg_num rn;
|
||||
struct w1_slave *sl;
|
||||
ssize_t result = count;
|
||||
ssize_t result;
|
||||
|
||||
if (w1_atoreg_num(dev, buf, count, &rn))
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user