Thread (96 messages) 96 messages, 15 authors, 2013-05-31

Re: [PATCH 1/2] ARM: kirkwood: proper retain MAC address workaround on DT ethernet

From: David Miller <davem@davemloft.net>
Date: 2013-05-26 04:04:50
Also in: linux-arm-kernel, linuxppc-dev, lkml

From: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Date: Wed, 22 May 2013 22:04:01 +0200
+			memcpy((void *)p->value, reg, 6);
This cast is completely unnecessary, non-void to void pointer casts
are automatic.

If it is necessary, because p->value is const, then you are trying
to change something behind the OF layer's back and need to use
the appropriate interface to change the property contents.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help