Skip to content

Commit 5ad9201

Browse files
Al ViroLinus Torvalds
Al Viro
authored and
Linus Torvalds
committed
[PATCH] dell_rbu: NULL noise removal
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent c4aa02e commit 5ad9201

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/firmware/dell_rbu.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ static int create_packet(void *data, size_t length)
105105
int ordernum = 0;
106106
int retval = 0;
107107
unsigned int packet_array_size = 0;
108-
void **invalid_addr_packet_array = 0;
109-
void *packet_data_temp_buf = 0;
108+
void **invalid_addr_packet_array = NULL;
109+
void *packet_data_temp_buf = NULL;
110110
unsigned int idx = 0;
111111

112112
pr_debug("create_packet: entry \n");
@@ -178,7 +178,7 @@ static int create_packet(void *data, size_t length)
178178
packet_data_temp_buf),
179179
allocation_floor);
180180
invalid_addr_packet_array[idx++] = packet_data_temp_buf;
181-
packet_data_temp_buf = 0;
181+
packet_data_temp_buf = NULL;
182182
}
183183
}
184184
spin_lock(&rbu_data.lock);

0 commit comments

Comments
 (0)