lkml.org 
[lkml]   [2011]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] block, blk-sysfs: Use the variable directly instead of a function call
On 2011-04-13 16:59, Liu Yuan wrote:
> From: Liu Yuan <tailai.ly@taobao.com>
>
> 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



\
 
 \ /
  Last update: 2011-04-13 22:15    [W:0.024 / U:59.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site