projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
668f272
)
Staging: comedi: serial2002: Use NULL instead of 0 for pointers
author
Ian Abbott
<abbotti@mev.co.uk>
Wed, 19 May 2010 13:10:04 +0000
(14:10 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 17 Jun 2010 20:28:57 +0000
(13:28 -0700)
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/serial2002.c
patch
|
blob
|
history
diff --git
a/drivers/staging/comedi/drivers/serial2002.c
b/drivers/staging/comedi/drivers/serial2002.c
index c929f986118c51c84e54e29240372c430ecccd68..5886ebfd043a287f3914478c76bd16ecf2228f14 100644
(file)
--- a/
drivers/staging/comedi/drivers/serial2002.c
+++ b/
drivers/staging/comedi/drivers/serial2002.c
@@
-444,7
+444,7
@@
static int serial_2002_open(struct comedi_device *dev)
break;
} else {
int command, channel, kind;
- struct config_t *cur_config =
0
;
+ struct config_t *cur_config =
NULL
;
channel = data.value & 0x1f;
kind = (data.value >> 5) & 0x7;
@@
-571,8
+571,8
@@
static int serial_2002_open(struct comedi_device *dev)
for (i = 0; i <= 4; i++) {
/* Fill in subdev data */
struct config_t *c;
- unsigned char *mapping =
0
;
- struct serial2002_range_table_t *range =
0
;
+ unsigned char *mapping =
NULL
;
+ struct serial2002_range_table_t *range =
NULL
;
int kind = 0;
switch (i) {
@@
-610,7
+610,7
@@
static int serial_2002_open(struct comedi_device *dev)
}
break;
default:{
- c =
0
;
+ c =
NULL
;
}
break;
}