diff options
author | Serge Ziryukin <ftrvxmtrx@gmail.com> | 2010-05-10 17:40:49 +0300 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-05-17 23:21:08 +0200 |
commit | a599cde7698acc5ae3d0f731b4a7d63a931aae63 (patch) | |
tree | 73f3b3e40c66772817570ddc631b647c31a22588 /drivers/net/lan91c96.c | |
parent | 568278e336a1aad2019b0ee42837a72776d6cd49 (diff) | |
download | u-boot-imx-a599cde7698acc5ae3d0f731b4a7d63a931aae63.zip u-boot-imx-a599cde7698acc5ae3d0f731b4a7d63a931aae63.tar.gz u-boot-imx-a599cde7698acc5ae3d0f731b4a7d63a931aae63.tar.bz2 |
lan91c96, smc911x: remove useless free(ptr) calls on NULL ptr
Signed-off-by: Serge Ziryukin <ftrvxmtrx@gmail.com>
Diffstat (limited to 'drivers/net/lan91c96.c')
-rw-r--r-- | drivers/net/lan91c96.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/lan91c96.c b/drivers/net/lan91c96.c index 90e4002..810079f 100644 --- a/drivers/net/lan91c96.c +++ b/drivers/net/lan91c96.c @@ -795,7 +795,6 @@ int lan91c96_initialize(u8 dev_num, int base_addr) dev = malloc(sizeof(*dev)); if (!dev) { - free(dev); return 0; } memset(dev, 0, sizeof(*dev)); |