[PATCH] isdn4linux: Siemens Gigaset drivers: remove IFNULL macros
With Hansjoerg Lipp <hjlipp@web.de> Remove the IFNULL debugging macros from the Gigaset drivers. Signed-off-by: Hansjoerg Lipp <hjlipp@web.de> Signed-off-by: Tilman Schmidt <tilman@imap.cc> Cc: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committato da
Linus Torvalds

parent
b1d47464c9
commit
d48c77841a
@@ -247,8 +247,6 @@ static inline void dump_bytes(enum debuglevel level, const char *tag,
|
||||
static char dbgline[3 * 32 + 1];
|
||||
static const char hexdigit[] = "0123456789abcdef";
|
||||
int i = 0;
|
||||
IFNULLRET(tag);
|
||||
IFNULLRET(bytes);
|
||||
while (count-- > 0) {
|
||||
if (i > sizeof(dbgline) - 4) {
|
||||
dbgline[i] = '\0';
|
||||
@@ -663,14 +661,10 @@ static unsigned char bitcounts[256] = {
|
||||
static inline void hdlc_unpack(unsigned char *src, unsigned count,
|
||||
struct bc_state *bcs)
|
||||
{
|
||||
struct bas_bc_state *ubc;
|
||||
struct bas_bc_state *ubc = bcs->hw.bas;
|
||||
int inputstate;
|
||||
unsigned seqlen, inbyte, inbits;
|
||||
|
||||
IFNULLRET(bcs);
|
||||
ubc = bcs->hw.bas;
|
||||
IFNULLRET(ubc);
|
||||
|
||||
/* load previous state:
|
||||
* inputstate = set of flag bits:
|
||||
* - INS_flag_hunt: no complete opening flag received since connection setup or last abort
|
||||
@@ -995,11 +989,7 @@ void gigaset_isoc_input(struct inbuf_t *inbuf)
|
||||
*/
|
||||
int gigaset_isoc_send_skb(struct bc_state *bcs, struct sk_buff *skb)
|
||||
{
|
||||
int len;
|
||||
|
||||
IFNULLRETVAL(bcs, -EFAULT);
|
||||
IFNULLRETVAL(skb, -EFAULT);
|
||||
len = skb->len;
|
||||
int len = skb->len;
|
||||
|
||||
skb_queue_tail(&bcs->squeue, skb);
|
||||
gig_dbg(DEBUG_ISO, "%s: skb queued, qlen=%d",
|
||||
|
Fai riferimento in un nuovo problema
Block a user