mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
null_blk: remove duplicate 0 initialization
In function null_add_dev() struct nullb *nullb member is allocated using kzalloc_node() which returns 0red memory. In function setup_queues() which is called from the null_add_dev(), on successful queue allocation we set the nullb->nr_queues = 0 which is not needed due to earlier use of kzalloc_node(). Signed-off-by: Chaitanya Kulkarni <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
2f578aaf51
commit
8c54803b98
1 changed files with 0 additions and 1 deletions
|
|
@ -1489,7 +1489,6 @@ static int setup_queues(struct nullb *nullb)
|
|||
if (!nullb->queues)
|
||||
return -ENOMEM;
|
||||
|
||||
nullb->nr_queues = 0;
|
||||
nullb->queue_depth = nullb->dev->hw_queue_depth;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue