isdn: capi: &&/|| typos
Subsystems (2)
PATCH 1/1 isdn: capi: &&/|| typos
Correct two typos.
Signed-off-by Roel Kluin <[email protected]>
---
drivers/isdn/capi/capidrv.c +2 -2
@@ -1519,7 +1519,7 @@ static int decodeFVteln(char *teln, unsigned long *bmaskp, int *activep)int digit2 =0 ;if (!isdigit (*s))return -3 ;while (isdigit (*s)) { digit1 = digit1*10 + (*s -'0' ); s++; } -if (digit1 <=0 && digit1 >30 )return -4 ; +if (digit1 <=0 || digit1 >30 )return -4 ;if (*s ==0 || *s ==',' || *s ==' ' ) { bmask |= (1 << digit1); digit1 =0 ;
@@ -1530,7 +1530,7 @@ static int decodeFVteln(char *teln, unsigned long *bmaskp, int *activep) s++;if (!isdigit (*s))return -3 ;while (isdigit (*s)) { digit2 = digit2*10 + (*s -'0' ); s++; } -if (digit2 <=0 && digit2 >30 )return -4 ; +if (digit2 <=0 || digit2 >30 )return -4 ;if (*s ==0 || *s ==',' || *s ==' ' ) {if (digit1 > digit2)for (i = digit2; i <= digit1 ; i++)
Quoted 3 lines · Roel Kluin
Correct two typos.
Signed-off-by Roel Kluin <[email protected]>
Acked-by Karsten Keil <[email protected]>
Quoted 23 lines
---
drivers/isdn/capi/capidrv.c +2
-2@@ -1519,7 +1519,7 @@ static int decodeFVteln(char *teln, unsigned long *bmaskp, int *activep)int digit2 =0 ;if (!isdigit (*s))return -3 ;while (isdigit (*s)) { digit1 = digit1*10 + (*s -'0' ); s++; } -if (digit1 <=0 && digit1 >30 )return -4 ; +if (digit1 <=0 || digit1 >30 )return -4 ;if (*s ==0 || *s ==',' || *s ==' ' ) { bmask |= (1 << digit1); digit1 =0 ;@@ -1530,7 +1530,7 @@ static int decodeFVteln(char *teln, unsigned long *bmaskp, int *activep) s++;if (!isdigit (*s))return -3 ;while (isdigit (*s)) { digit2 = digit2*10 + (*s -'0' ); s++; } -if (digit2 <=0 && digit2 >30 )return -4 ; +if (digit2 <=0 || digit2 >30 )return -4 ;if (*s ==0 || *s ==',' || *s ==' ' ) {if (digit1 > digit2)for (i = digit2; i <= digit1 ; i++)
Signature · 4 lines
Karsten Keil SuSE Labs ISDN and VOIP development SUSE LINUX Products GmbH, Maxfeldstr.5 90409 Nuernberg, GF: Markus Rex, HRB 16746 (AG Nuernberg)
From: Karsten Keil <[email protected]>
Date: Fri, 2 Jan 2009 13:16:30 +0100
Quoted 6 lines · Roel Kluin
Quoted 3 lines
Correct two typos.
Signed-off-by Roel Kluin <[email protected]>Acked-by Karsten Keil <[email protected]>
Applied, thanks everyone.