Re: [PATCH] block, blk-sysfs: Use the variable directly instead ofa function call

From: Jens Axboe
Date: Wed Apr 13 2011 - 16:13:43 EST


On 2011-04-13 16:59, Liu Yuan wrote:
> From: Liu Yuan <tailai.ly@xxxxxxxxxx>
>
> In the function blk_register_queue(), var _dev_ is already assigned by
> disk_to_dev().So use it directly instead of calling disk_to_dev() again.

Indeed it is, thanks, I'll add this.

--
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/