Check that unit isn't NULL before using it, which could happen if card
commit58142f4f6b6ed28e818c46a78bbf7e9456b154c7
authorneil <neil@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 8 Oct 2011 21:18:55 +0000 (8 21:18 +0000)
committerneil <neil@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 8 Oct 2011 21:18:55 +0000 (8 21:18 +0000)
tree782da5629606c07adb269b03bc2a558b97859f6a
parent7e1e88b1b332dab7b114e53d716031d8081032c3
Check that unit isn't NULL before using it, which could happen if card
is removed during initialisation. Thanks to Toni Wilen for spotting
this.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@41788 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
workbench/devs/networks/etherlink3/pccard.c