block: make core bits checkpatch compliant

Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
Jens Axboe 2008-01-31 13:03:55 +01:00
commit 6728cb0e63
8 changed files with 117 additions and 142 deletions

View file

@ -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);