Commit 0d9124dc authored by François Romieu's avatar François Romieu Committed by Linus Torvalds

[PATCH] 2.5.21 - hdlc drivers fixes

- (compilation fix) missing init.h include;
- (compilation fix) multiple pointers can't be set to NULL in one line if their
  type differ.
parent 9eccc1de
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <asm/io.h> #include <asm/io.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/init.h>
#define COMX_NEW #define COMX_NEW
...@@ -2008,7 +2009,8 @@ static int MUNICH_close(struct net_device *dev) ...@@ -2008,7 +2009,8 @@ static int MUNICH_close(struct net_device *dev)
if (board->tiq) kfree((void *)board->tiq); if (board->tiq) kfree((void *)board->tiq);
if (board->riq) kfree((void *)board->riq); if (board->riq) kfree((void *)board->riq);
if (board->piq) kfree((void *)board->piq); if (board->piq) kfree((void *)board->piq);
board->ccb = board->tiq = board->riq = board->piq = NULL; board->ccb = NULL;
board->tiq = board->riq = board->piq = NULL;
} }
/* Enable setting of hw parameters */ /* Enable setting of hw parameters */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment