Skip to contentSkip to conversation

Staging: i2o: i2o_block: Fixed coding style issue

PATCH New Tolga Ceylan 1 participant 2 messages Feb 19, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Staging: i2o: i2o_block: Fixed coding style issue

"u32 ** mptr" should be "u32 **mptr"

---
 drivers/staging/i2o/i2o_block.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/i2o/i2o_block.c +1 -1
index 0a13c64..9164569 100644
@@ -315,7 +315,7 @@ static inline void i2o_block_request_free(struct i2o_block_request *ireq)
  */
 static inline int i2o_block_sglist_alloc(struct i2o_controller *c,
 					 struct i2o_block_request *ireq,
-					 u32 ** mptr)
+					 u32 **mptr)
 {
 	int nents;
 	enum dma_data_direction direction;
Signature · 1 line
2.3.0
#1 lore raw

PATCH 2/2 Staging: i2o: i2o_block: Fixed coding style issue

1) Spaces prohibited after that '&'
2) No space is necessary after a cast

---
 drivers/staging/i2o/i2o_block.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/i2o/i2o_block.c +2 -2
index 9164569..a8f9489 100644
@@ -838,8 +838,8 @@ static int i2o_block_transfer(struct request *req)
 
 		*mptr++ = cpu_to_le32(scsi_flags);
 
-		*((u32 *) & cmd[2]) = cpu_to_be32(blk_rq_pos(req) * hwsec);
-		*((u16 *) & cmd[7]) = cpu_to_be16(blk_rq_sectors(req) * hwsec);
+		*((u32 *)&cmd[2]) = cpu_to_be32(blk_rq_pos(req) * hwsec);
+		*((u16 *)&cmd[7]) = cpu_to_be16(blk_rq_sectors(req) * hwsec);
 
 		memcpy(mptr, cmd, 10);
 		mptr += 4;
Signature · 1 line
2.3.0