Staging: comedi: serial2002: Use NULL instead of 0 for pointers
Signed-off-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
668f272e57
commit
c5da20905c
@ -444,7 +444,7 @@ static int serial_2002_open(struct comedi_device *dev)
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
int command, channel, kind;
|
int command, channel, kind;
|
||||||
struct config_t *cur_config = 0;
|
struct config_t *cur_config = NULL;
|
||||||
|
|
||||||
channel = data.value & 0x1f;
|
channel = data.value & 0x1f;
|
||||||
kind = (data.value >> 5) & 0x7;
|
kind = (data.value >> 5) & 0x7;
|
||||||
@ -571,8 +571,8 @@ static int serial_2002_open(struct comedi_device *dev)
|
|||||||
for (i = 0; i <= 4; i++) {
|
for (i = 0; i <= 4; i++) {
|
||||||
/* Fill in subdev data */
|
/* Fill in subdev data */
|
||||||
struct config_t *c;
|
struct config_t *c;
|
||||||
unsigned char *mapping = 0;
|
unsigned char *mapping = NULL;
|
||||||
struct serial2002_range_table_t *range = 0;
|
struct serial2002_range_table_t *range = NULL;
|
||||||
int kind = 0;
|
int kind = 0;
|
||||||
|
|
||||||
switch (i) {
|
switch (i) {
|
||||||
@ -610,7 +610,7 @@ static int serial_2002_open(struct comedi_device *dev)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:{
|
default:{
|
||||||
c = 0;
|
c = NULL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user