All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: Remove unnecessary variable assignment
@ 2022-01-17 10:22 GuoYong Zheng
  2022-01-17 14:24 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: GuoYong Zheng @ 2022-01-17 10:22 UTC (permalink / raw)
  To: axboe; +Cc: linux-block, linux-kernel, GuoYong Zheng

The parameter "ret" should be zero when running to this line,
no need to set to zero again, remove it.

Signed-off-by: GuoYong Zheng <zhenggy@chinatelecom.cn>
---
 block/blk-sysfs.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index e20eadf..bed4a2f 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -887,7 +887,6 @@ int blk_register_queue(struct gendisk *disk)
 		kobject_uevent(&q->elevator->kobj, KOBJ_ADD);
 	mutex_unlock(&q->sysfs_lock);
 
-	ret = 0;
 unlock:
 	mutex_unlock(&q->sysfs_dir_lock);
 
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] block: Remove unnecessary variable assignment
  2022-01-17 10:22 [PATCH] block: Remove unnecessary variable assignment GuoYong Zheng
@ 2022-01-17 14:24 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2022-01-17 14:24 UTC (permalink / raw)
  To: GuoYong Zheng; +Cc: linux-block, linux-kernel

On Mon, 17 Jan 2022 18:22:37 +0800, GuoYong Zheng wrote:
> The parameter "ret" should be zero when running to this line,
> no need to set to zero again, remove it.
> 
> 

Applied, thanks!

[1/1] block: Remove unnecessary variable assignment
      commit: e6a2e5116e07ce5acc8698785c29e9e47f010fd5

Best regards,
-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-17 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-17 10:22 [PATCH] block: Remove unnecessary variable assignment GuoYong Zheng
2022-01-17 14:24 ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.