blk-sysfs: remove NULL pointer checking in queue_wb_lat_store
authorweiping zhang <zhangweiping@didichuxing.com>
Thu, 23 Nov 2017 13:39:40 +0000 (21:39 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 24 Nov 2017 05:00:17 +0000 (22:00 -0700)
commitf680474345f1fd6329d1806d6358066fd3b07f02
tree62b12f06dc8da3d906e24ea0ab6c5cf0d2f7dd43
parent612ea091fc77770d659b82ea44a1d5646e0af54c
blk-sysfs: remove NULL pointer checking in queue_wb_lat_store

wbt_init doesn't set q->rq_wb to NULL, if wbt_init return 0,
so check return value is enough, remove NULL checking.

Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c