diff options
author | Jens Axboe <jens.axboe@oracle.com> | 2008-01-31 13:03:55 +0100 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-02-01 09:26:33 +0100 |
commit | 6728cb0e6343d4068ccec13f07212e6382d3ff33 (patch) | |
tree | 5a7826dc91cf2d9cf54e8c24b40aa3c4d892c797 /block/blk-sysfs.c | |
parent | 22b132102f1540dd40f3e41df88796829b685f1a (diff) | |
download | op-kernel-dev-6728cb0e6343d4068ccec13f07212e6382d3ff33.zip op-kernel-dev-6728cb0e6343d4068ccec13f07212e6382d3ff33.tar.gz |
block: make core bits checkpatch compliant
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index bc28776..54d0db1 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -207,12 +207,13 @@ queue_attr_store(struct kobject *kobj, struct attribute *attr, const char *page, size_t length) { struct queue_sysfs_entry *entry = to_queue(attr); - struct request_queue *q = container_of(kobj, struct request_queue, kobj); - + struct request_queue *q; ssize_t res; if (!entry->store) return -EIO; + + q = container_of(kobj, struct request_queue, kobj); mutex_lock(&q->sysfs_lock); if (test_bit(QUEUE_FLAG_DEAD, &q->queue_flags)) { mutex_unlock(&q->sysfs_lock); |