* [PATCH 1/2] Staging: i2o: i2o_block: Fixed coding style issue
@ 2015-02-19 1:00 Tolga Ceylan
2015-02-19 1:00 ` [PATCH 2/2] " Tolga Ceylan
0 siblings, 1 reply; 2+ messages in thread
From: Tolga Ceylan @ 2015-02-19 1:00 UTC (permalink / raw)
To: Greg Kroah-Hartman, Alan Cox, devel, linux-kernel, tolga.ceylan
"u32 ** mptr" should be "u32 **mptr"
Signed-off-by: Tolga Ceylan <tolga.ceylan@gmail.com>
---
drivers/staging/i2o/i2o_block.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/i2o/i2o_block.c b/drivers/staging/i2o/i2o_block.c
index 0a13c64..9164569 100644
--- a/drivers/staging/i2o/i2o_block.c
+++ b/drivers/staging/i2o/i2o_block.c
@@ -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;
--
2.3.0
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH 2/2] Staging: i2o: i2o_block: Fixed coding style issue
2015-02-19 1:00 [PATCH 1/2] Staging: i2o: i2o_block: Fixed coding style issue Tolga Ceylan
@ 2015-02-19 1:00 ` Tolga Ceylan
0 siblings, 0 replies; 2+ messages in thread
From: Tolga Ceylan @ 2015-02-19 1:00 UTC (permalink / raw)
To: Greg Kroah-Hartman, Alan Cox, devel, linux-kernel, tolga.ceylan
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-19 1:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-19 1:00 [PATCH 1/2] Staging: i2o: i2o_block: Fixed coding style issue Tolga Ceylan
2015-02-19 1:00 ` [PATCH 2/2] " Tolga Ceylan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®