Jens Axboe 2bc19cd5fd blk-throttle: fix unused variable warning with BLK_DEV_THROTTLING_LOW=n
We trigger this warning:

block/blk-throttle.c: In function ‘blk_throtl_bio’:
block/blk-throttle.c:2042:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
  int ret;
      ^~~

since we only assign 'ret' if BLK_DEV_THROTTLING_LOW is off, we never
check it.

Reported-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2017-04-20 09:41:36 -06:00
..
2016-10-28 08:45:17 -06:00
2017-04-07 09:40:52 -06:00
2017-04-19 17:38:34 -06:00
2017-02-27 18:43:47 -08:00
2017-03-22 20:11:37 -06:00
2017-04-19 17:38:36 -06:00
2017-02-08 13:43:06 -07:00