fpga: Fix dead store fpga-mgr.c
Using clang's scan-build/view this issue was flagged in fpga-mgr.c drivers/fpga/fpga-mgr.c:585:3: warning: Value stored to 'ret' is never read [deadcode.DeadStores] ret = id; Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Moritz Fischer <mdf@kernel.org>
This commit is contained in:
parent
e1d9ec3af3
commit
88aaab9218
|
@ -581,10 +581,8 @@ struct fpga_manager *fpga_mgr_create(struct device *dev, const char *name,
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
id = ida_simple_get(&fpga_mgr_ida, 0, 0, GFP_KERNEL);
|
id = ida_simple_get(&fpga_mgr_ida, 0, 0, GFP_KERNEL);
|
||||||
if (id < 0) {
|
if (id < 0)
|
||||||
ret = id;
|
|
||||||
goto error_kfree;
|
goto error_kfree;
|
||||||
}
|
|
||||||
|
|
||||||
mutex_init(&mgr->ref_mutex);
|
mutex_init(&mgr->ref_mutex);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue