Thread (4 messages) flat view 4 messages, 4 authors, 2015-03-23

Re: [PATCH] Net: ethernet: rocker: fixed a space coding style issue

From: Jiri Pirko <jiri@resnulli.us>
Date: 2015-03-23 13:18:45
Also in: lkml

Sat, Mar 21, 2015 at 07:02:40PM CET, andreimaresu@gmail.com wrote:
quoted hunk ↗ jump to hunk
Fixed a space coding style issue found by checkpatch.pl in rocker.c

Signed-off-by: Andrei Maresu <redacted>
---
drivers/net/ethernet/rocker/rocker.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/rocker/rocker.c b/drivers/net/ethernet/rocker/rocker.c
index 9fb6948..d364b12 100644
--- a/drivers/net/ethernet/rocker/rocker.c
+++ b/drivers/net/ethernet/rocker/rocker.c
@@ -812,7 +812,7 @@ static void *rocker_desc_cookie_ptr_get(struct rocker_desc_info *desc_info)
static void rocker_desc_cookie_ptr_set(struct rocker_desc_info *desc_info,
				       void *ptr)
{
-	desc_info->desc->cookie = (uintptr_t) ptr;
+	desc_info->desc->cookie = (uintptr_t)ptr;
Checkpatch does not mark this as an error, not even as a warning:
"CHECK: No space is necessary after a cast". I personally like the
notation with space better.

}

static struct rocker_desc_info *
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help