Skip to content

Commit

Permalink
lightnvm: pblk: remove unused return variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Javier González authored and Jens Axboe committed Jun 30, 2017
1 parent 2950e7e commit 653cbb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/lightnvm/pblk-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}
Expand Down

0 comments on commit 653cbb8

Please sign in to comment.