Commit 653cbb84 authored by Javier González's avatar Javier González Committed by Jens Axboe

lightnvm: pblk: remove unused return variable

Remove unused variable.
Signed-off-by: default avatarJavier González <javier@cnexlabs.com>
Signed-off-by: default avatarMatias Bjørling <matias@cnexlabs.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2950e7e6
...@@ -322,7 +322,7 @@ static ssize_t pblk_sysfs_gc_force(struct pblk *pblk, const char *page, ...@@ -322,7 +322,7 @@ static ssize_t pblk_sysfs_gc_force(struct pblk *pblk, const char *page,
size_t len) size_t len)
{ {
size_t c_len; size_t c_len;
int ret, force; int force;
c_len = strcspn(page, "\n"); c_len = strcspn(page, "\n");
if (c_len >= len) if (c_len >= len)
...@@ -331,7 +331,7 @@ static ssize_t pblk_sysfs_gc_force(struct pblk *pblk, const char *page, ...@@ -331,7 +331,7 @@ static ssize_t pblk_sysfs_gc_force(struct pblk *pblk, const char *page,
if (kstrtouint(page, 0, &force)) if (kstrtouint(page, 0, &force))
return -EINVAL; return -EINVAL;
ret = pblk_gc_sysfs_force(pblk, force); pblk_gc_sysfs_force(pblk, force);
return len; return len;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment