Commit b81831c69afb82c0545d3de729290fab4e50d429

Authored by Al Viro
Committed by Linus Torvalds
1 parent f2e97df669

[PATCH] drivers/serial NULL noise removal

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

drivers/serial/uartlite.c
... ... @@ -256,7 +256,7 @@
256 256 {
257 257 release_mem_region(port->mapbase, ULITE_REGION);
258 258 iounmap(port->membase);
259   - port->membase = 0;
  259 + port->membase = NULL;
260 260 }
261 261  
262 262 static int ulite_request_port(struct uart_port *port)
... ... @@ -438,7 +438,7 @@
438 438 port->iotype = UPIO_MEM;
439 439 port->iobase = 1; /* mark port in use */
440 440 port->mapbase = res->start;
441   - port->membase = 0;
  441 + port->membase = NULL;
442 442 port->ops = &ulite_ops;
443 443 port->irq = res2->start;
444 444 port->flags = UPF_BOOT_AUTOCONF;
... ... @@ -462,7 +462,7 @@
462 462 uart_remove_one_port(&ulite_uart_driver, port);
463 463  
464 464 /* mark port as free */
465   - port->membase = 0;
  465 + port->membase = NULL;
466 466  
467 467 return 0;
468 468 }