drivers/net/dnet.c: Fix GCC 4.6 warnings
authorAnatolij Gustschin <agust@denx.de>
Sat, 19 Nov 2011 10:06:30 +0000 (10:06 +0000)
committerHeiko Schocher <hs@denx.de>
Wed, 23 Nov 2011 07:33:57 +0000 (08:33 +0100)
commitd780e74fc3abe6a8b9a01357720c15d974d83dae
tree1a934161ea0a3157f3bef0496d06c02abf05f56c
parentbf1d6440a241838fbcef2e07394e435f9e4ae181
drivers/net/dnet.c: Fix GCC 4.6 warnings

Fix:
dnet.c: In function 'dnet_send':
dnet.c:136:9: warning: variable 'len' set but not used
[-Wunused-but-set-variable]
dnet.c: In function 'dnet_set_hwaddr':
dnet.c:209:2: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]
dnet.c:209:2: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]
dnet.c:209:2: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]
dnet.c:209:2: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/net/dnet.c