Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: mctp: Remove unnecessary cast in mctp_cb

The void * cast in mctp_cb is unnecessary as it's already been done
at the start of the function.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Jeremy Kerr <jk@codeconstruct.com.au>

Link: https://patch.msgid.link/Z9PwOQeBSYlgZlHq@gondor.apana.org.au
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Herbert Xu and committed by
Paolo Abeni
a6984aa8 d9917c7d

+1 -1
+1 -1
include/net/mctp.h
··· 212 212 213 213 BUILD_BUG_ON(sizeof(struct mctp_skb_cb) > sizeof(skb->cb)); 214 214 WARN_ON(cb->magic != 0x4d435450); 215 - return (void *)(skb->cb); 215 + return cb; 216 216 } 217 217 218 218 /* If CONFIG_MCTP_FLOWS, we may add one of these as a SKB extension,