diff options
author | Colin Ian King <[email protected]> | 2024-04-15 11:19:28 +0100 |
---|---|---|
committer | Ira Weiny <[email protected]> | 2024-04-25 14:11:11 -0700 |
commit | 41147b006be2174b825a54b0620ecf4cc7ec5c84 (patch) | |
tree | 948351dbdc8a295de2ebc1d7be0b428870c6bd49 | |
parent | 57456adef68db15ab81578d42848bae5b542999a (diff) |
dax: remove redundant assignment to variable rc
The variable rc is being assigned an value and then is being re-assigned
a new value in the next statement. The assignment is redundant and can
be removed.
Cleans up clang scan build warning:
drivers/dax/bus.c:1207:2: warning: Value stored to 'rc' is never
read [deadcode.DeadStores]
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Alison Schofield <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Reviewed-by: Vishal Verma <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ira Weiny <[email protected]>
-rw-r--r-- | drivers/dax/bus.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dax/bus.c b/drivers/dax/bus.c index 018f81ec82ac..6ec5db8013e8 100644 --- a/drivers/dax/bus.c +++ b/drivers/dax/bus.c @@ -1204,7 +1204,6 @@ static ssize_t mapping_store(struct device *dev, struct device_attribute *attr, if (rc) return rc; - rc = -ENXIO; rc = down_write_killable(&dax_region_rwsem); if (rc) return rc; |