]> git.baikalelectronics.ru Git - kernel.git/commitdiff
lightnvm: pblk: remove unused return variable
authorJavier González <jg@lightnvm.io>
Fri, 30 Jun 2017 15:56:36 +0000 (17:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Jun 2017 17:08:18 +0000 (11:08 -0600)
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>
drivers/lightnvm/pblk-sysfs.c

index 22e6f2ad4aeeccfbe7613b83809fb6667cfc4464..95fb434e2f01a968104d1645e2f8f6b73cba3fd7 100644 (file)
@@ -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;
 }