target: remove dead code
Local variable _ret_ is assigned to a constant value and it is never updated again. Remove this variable and the dead code it guards. Addresses-Coverity-ID: 140761 Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
Родитель
abb85a9b51
Коммит
fb418240ec
|
@ -554,7 +554,7 @@ static ssize_t rd_set_configfs_dev_params(struct se_device *dev,
|
|||
struct rd_dev *rd_dev = RD_DEV(dev);
|
||||
char *orig, *ptr, *opts;
|
||||
substring_t args[MAX_OPT_ARGS];
|
||||
int ret = 0, arg, token;
|
||||
int arg, token;
|
||||
|
||||
opts = kstrdup(page, GFP_KERNEL);
|
||||
if (!opts)
|
||||
|
@ -589,7 +589,7 @@ static ssize_t rd_set_configfs_dev_params(struct se_device *dev,
|
|||
}
|
||||
|
||||
kfree(orig);
|
||||
return (!ret) ? count : ret;
|
||||
return count;
|
||||
}
|
||||
|
||||
static ssize_t rd_show_configfs_dev_params(struct se_device *dev, char *b)
|
||||
|
|
Загрузка…
Ссылка в новой задаче