atm: ambassador: use NULL instead of 0 for pointer
Subsystems (3)
PATCH 1/1 atm: ambassador: use NULL instead of 0 for pointer
Quoted 1 line
From
932e928d53b1e588dc17019e7f9fa7a61b8b7468Mon Sep 17 00:00:00 2001
From: Daeseok Youn <[email protected]>
Date: Wed, 19 Feb 2014 10:35:41 +0900
Subject: [PATCH] atm: ambassador: use NULL instead of 0 for pointer
sparse says:
drivers/atm/ambassador.c:1928:24: warning:
Using plain integer as NULL pointer
--- drivers/atm/ambassador.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/atm/ambassador.c +1 -1
@@ -1925,7 +1925,7 @@ static int ucode_init(loader_block *lb, amb_dev *dev)const struct firmware *fw;unsigned long start_address;const struct ihex_binrec *rec; -const char *errmsg =0 ; +const char *errmsg =NULL ;int res; res =request_ihex_firmware (&fw,"atmsar11.fw" , &dev->pci_dev->dev);
Signature · 2 lines
1.7.9.5 ---
Quoted 20 lines · On Wed, 19 Feb 2014 14:11:15 +0900 Daeseok Youn <[email protected]> wrote:
Quoted 1 line
From
932e928d53b1e588dc17019e7f9fa7a61b8b7468Mon Sep 17 00:00:00 2001From: Daeseok Youn <[email protected]>
Date: Wed, 19 Feb 2014 10:35:41 +0900
Subject: [PATCH] atm: ambassador: use NULL instead of 0 for pointersparse says:
drivers/atm/ambassador.c:1928:24: warning:
Using plain integer as NULL pointerSigned-off-by Daeseok Youn <[email protected]>--- drivers/atm/ambassador.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/atm/ambassador.c +0
-0
drivers/atm/ambassador.c static int ucode_init(loader_block *lb, amb_dev *dev) · line 1931
Quoted 8 lines
drivers/atm/ambassador.c +1
-1@@ -1925,7 +1925,7 @@ static int ucode_init(loader_block *lb, amb_dev *dev)const struct firmware *fw;unsigned long start_address;const struct ihex_binrec *rec; -const char *errmsg =0 ; +const char *errmsg =NULL ;int res; res =request_ihex_firmware (&fw,"atmsar11.fw" , &dev->pci_dev->dev);
From: Daeseok Youn <[email protected]>
Date: Wed, 19 Feb 2014 14:11:15 +0900
Quoted 11 lines
From
932e928d53b1e588dc17019e7f9fa7a61b8b7468Mon Sep 17 00:00:00 2001
From: Daeseok Youn <[email protected]>
Date: Wed, 19 Feb 2014 10:35:41 +0900
Subject: [PATCH] atm: ambassador: use NULL instead of 0 for pointersparse says:
drivers/atm/ambassador.c:1928:24: warning:
Using plain integer as NULL pointerSigned-off-by Daeseok Youn <[email protected]>
Applied.