libertas: don't cast a pointer to pointer of
authorLi Zefan <lizf@cn.fujitsu.com>
Thu, 6 Dec 2007 12:01:21 +0000 (13:01 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:06:07 +0000 (15:06 -0800)
commitabe3ed14d39adcea9ae186cf741b15d11544458f
tree65f0e7df2a2fea79541815a4a50349c4f020f533
parent6228c0aea544f5292977e6b27cd231a4ea137a62
libertas: don't cast a pointer to pointer of

Don't cast struct foo * to struct list_head *, it's safe only when
the list member is the first member of struct foo.

Also don't cast struct list_head * to struct foo *.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cmd.c