Skip to contentSkip to conversation

Staging: i2o: Remove indentation of labels

PATCH In review Helen Fornazier 2 participants 3 messages Mar 26, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: i2o: Remove indentation of labels

This patch fixes the checkpatche.pl warnings:

WARNING: labels should not be indented
+ context_remove:

WARNING: labels should not be indented
+ nop_msg:

WARNING: labels should not be indented
+ exit:

---
 drivers/staging/i2o/i2o_block.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
drivers/staging/i2o/i2o_block.c +12 -12
index 7784787..406758f 100644
@@ -871,13 +871,13 @@ static int i2o_block_transfer(struct request *req)
 
 	return 0;
 
-      context_remove:
+context_remove:
 	i2o_cntxt_list_remove(c, req);
 
-      nop_msg:
+nop_msg:
 	i2o_msg_nop(c, msg);
 
-      exit:
+exit:
 	return rc;
 };
 
@@ -1002,13 +1002,13 @@ static struct i2o_block_device *i2o_block_device_alloc(void)
 
 	return dev;
 
-      cleanup_queue:
+cleanup_queue:
 	put_disk(gd);
 
-      cleanup_dev:
+cleanup_dev:
 	kfree(dev);
 
-      exit:
+exit:
 	return ERR_PTR(rc);
 };
 
@@ -1115,10 +1115,10 @@ static int i2o_block_probe(struct device *dev)
 
 	return 0;
 
-      claim_release:
+claim_release:
 	i2o_device_claim_release(i2o_dev);
 
-      exit:
+exit:
 	return rc;
 };
 
@@ -1187,16 +1187,16 @@ static int __init i2o_block_init(void)
 
 	return 0;
 
-      unregister_blkdev:
+unregister_blkdev:
 	unregister_blkdev(I2O_MAJOR, "i2o_block");
 
-      free_mempool:
+free_mempool:
 	mempool_destroy(i2o_blk_req_pool.pool);
 
-      free_slab:
+free_slab:
 	kmem_cache_destroy(i2o_blk_req_pool.slab);
 
-      exit:
+exit:
 	return rc;
 };
 
Signature · 1 line
1.9.1
#1 lore raw

i2o is on the way out of the kernel. So there is no point to mae patches on it. You can find the list of the directories to avoid in the tutorial, in the section Find a driver to clean up.

julia

Quoted 98 lines · Helen Fornazier

This patch fixes the checkpatche.pl warnings:

WARNING: labels should not be indented
+ context_remove:

WARNING: labels should not be indented
+ nop_msg:

WARNING: labels should not be indented
+ exit:

---
 drivers/staging/i2o/i2o_block.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
drivers/staging/i2o/i2o_block.c +12 -12
index 7784787..406758f 100644
@@ -871,13 +871,13 @@ static int i2o_block_transfer(struct request *req)
 
 	return 0;
 
-      context_remove:
+context_remove:
 	i2o_cntxt_list_remove(c, req);
 
-      nop_msg:
+nop_msg:
 	i2o_msg_nop(c, msg);
 
-      exit:
+exit:
 	return rc;
 };
 
@@ -1002,13 +1002,13 @@ static struct i2o_block_device *i2o_block_device_alloc(void)
 
 	return dev;
 
-      cleanup_queue:
+cleanup_queue:
 	put_disk(gd);
 
-      cleanup_dev:
+cleanup_dev:
 	kfree(dev);
 
-      exit:
+exit:
 	return ERR_PTR(rc);
 };
 
@@ -1115,10 +1115,10 @@ static int i2o_block_probe(struct device *dev)
 
 	return 0;
 
-      claim_release:
+claim_release:
 	i2o_device_claim_release(i2o_dev);
 
-      exit:
+exit:
 	return rc;
 };
 
@@ -1187,16 +1187,16 @@ static int __init i2o_block_init(void)
 
 	return 0;
 
-      unregister_blkdev:
+unregister_blkdev:
 	unregister_blkdev(I2O_MAJOR, "i2o_block");
 
-      free_mempool:
+free_mempool:
 	mempool_destroy(i2o_blk_req_pool.pool);
 
-      free_slab:
+free_slab:
 	kmem_cache_destroy(i2o_blk_req_pool.slab);
 
-      exit:
+exit:
 	return rc;
 };
 
Signature · 8 lines
1.9.1

-- 
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1427328162-6345-1-git-send-email-helen.fornazier%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
#2 lore raw
Quoted 6 lines · Julia Lawall

i2o is on the way out of the kernel. So there is no point to mae patches on it. You can find the list of the directories to avoid in the tutorial, in the section Find a driver to clean up.

julia

Sorry about that, I've read that list but I completely forgot about it.

Quoted 108 lines · Helen Fornazier
Quoted 12 lines

This patch fixes the checkpatche.pl warnings:

WARNING: labels should not be indented
+ context_remove:

WARNING: labels should not be indented
+ nop_msg:

WARNING: labels should not be indented
+ exit:

Review

Quoted 6 lines
---
 drivers/staging/i2o/i2o_block.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
(quoted diff) +0 -0

b/drivers/staging/i2o/i2o_block.c

drivers/staging/i2o/i2o_block.c static struct i2o_block_device

Quoted 21 lines

index 7784787..406758f 100644

drivers/staging/i2o/i2o_block.c +3 -3
@@ -871,13 +871,13 @@ static int i2o_block_transfer(struct request *req)
 
      return 0;
 
-      context_remove:
+context_remove:
      i2o_cntxt_list_remove(c, req);
 
-      nop_msg:
+nop_msg:
      i2o_msg_nop(c, msg);
 
-      exit:
+exit:
      return rc;
 };
 
@@ -1002,13 +1002,13 @@ static struct i2o_block_device

*i2o_block_device_alloc(void)

Quoted 53 lines
drivers/staging/i2o/i2o_block.c +9 -10
      return dev;
 
-      cleanup_queue:
+cleanup_queue:
      put_disk(gd);
 
-      cleanup_dev:
+cleanup_dev:
      kfree(dev);
 
-      exit:
+exit:
      return ERR_PTR(rc);
 };
 
@@ -1115,10 +1115,10 @@ static int i2o_block_probe(struct device *dev)
 
      return 0;
 
-      claim_release:
+claim_release:
      i2o_device_claim_release(i2o_dev);
 
-      exit:
+exit:
      return rc;
 };
 
@@ -1187,16 +1187,16 @@ static int __init i2o_block_init(void)
 
      return 0;
 
-      unregister_blkdev:
+unregister_blkdev:
      unregister_blkdev(I2O_MAJOR, "i2o_block");
 
-      free_mempool:
+free_mempool:
      mempool_destroy(i2o_blk_req_pool.pool);
 
-      free_slab:
+free_slab:
      kmem_cache_destroy(i2o_blk_req_pool.slab);
 
-      exit:
+exit:
      return rc;
 };
 
--

1.9.1

Quoted 2 lines

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected].

Quoted 2 lines

To post to this group, send email to [email protected]. To view this discussion on the web visit

https://groups.google.com/d/msgid/outreachy-kernel/1427328162-6345-1-git-send-email-helen.fornazier%40gmail.com
.

Quoted 2 lines

For more options, visit https://groups.google.com/d/optout.

Signature · 1 line
Helen Fornazier