summaryrefslogtreecommitdiff
path: root/drivers/lightnvm/pblk-sysfs.c
diff options
context:
space:
mode:
authorJavier González <jg@lightnvm.io>2017-06-30 18:56:36 +0300
committerJens Axboe <axboe@kernel.dk>2017-06-30 20:08:18 +0300
commit653cbb8472b88f0781d9191685bd6603f344214d (patch)
treeab40f493d4934b236afcacc7443f5554a08f9551 /drivers/lightnvm/pblk-sysfs.c
parent2950e7e61089de0e7058fdf04a53d25e078f2230 (diff)
downloadlinux-653cbb8472b88f0781d9191685bd6603f344214d.tar.xz
lightnvm: pblk: remove unused return variable
Remove unused variable. Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <matias@cnexlabs.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk-sysfs.c')
-rw-r--r--drivers/lightnvm/pblk-sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/lightnvm/pblk-sysfs.c b/drivers/lightnvm/pblk-sysfs.c
index 22e6f2ad4aee..95fb434e2f01 100644
--- a/drivers/lightnvm/pblk-sysfs.c
+++ b/drivers/lightnvm/pblk-sysfs.c
@@ -322,7 +322,7 @@ static ssize_t pblk_sysfs_gc_force(struct pblk *pblk, const char *page,
size_t len)
{
size_t c_len;
- int ret, force;
+ int force;
c_len = strcspn(page, "\n");
if (c_len >= len)
@@ -331,7 +331,7 @@ static ssize_t pblk_sysfs_gc_force(struct pblk *pblk, const char *page,
if (kstrtouint(page, 0, &force))
return -EINVAL;
- ret = pblk_gc_sysfs_force(pblk, force);
+ pblk_gc_sysfs_force(pblk, force);
return len;
}