Skip to content

Commit 41147b0

Browse files
ColinIanKingweiny2
authored andcommitted
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]>
1 parent 57456ad commit 41147b0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/dax/bus.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,6 @@ static ssize_t mapping_store(struct device *dev, struct device_attribute *attr,
12041204
if (rc)
12051205
return rc;
12061206

1207-
rc = -ENXIO;
12081207
rc = down_write_killable(&dax_region_rwsem);
12091208
if (rc)
12101209
return rc;

0 commit comments

Comments
 (0)