lkml.org 
[lkml]   [2015]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] Staging: i2o: i2o_block: Fixed coding style issue
Date
1) Spaces prohibited after that '&'
2) No space is necessary after a cast

Signed-off-by: Tolga Ceylan <tolga.ceylan@gmail.com>
---
drivers/staging/i2o/i2o_block.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/i2o/i2o_block.c b/drivers/staging/i2o/i2o_block.c
index 9164569..a8f9489 100644
--- a/drivers/staging/i2o/i2o_block.c
+++ b/drivers/staging/i2o/i2o_block.c
@@ -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;
--
2.3.0


\
 
 \ /
  Last update: 2015-02-19 02:21    [W:0.036 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site