skfp: testing the wrong variable in skfp_driver_init()
authorDan Carpenter <error27@gmail.com>
Thu, 23 Dec 2010 19:17:34 +0000 (19:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Dec 2010 21:54:57 +0000 (13:54 -0800)
commit4a5fc4e179d79c79ad87bfc12a2d7e9b2371e40c
treec8d5aa6ca5080097c2927295b6560668e17eca0b
parentd39cd5e99a0ad88aba6793fb5e5f34e29cda6e6f
skfp: testing the wrong variable in skfp_driver_init()

The intent here was to test if the allocation failed but we tested
"SharedMemSize" instead of "SharedMemAddr" by mistake.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/skfp/skfddi.c