summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2016-04-27 01:55:10 +0200
committerMarek Vasut <[email protected]>2016-05-06 18:35:06 +0200
commit2f1b4302e352800b8b651a300281a7fae67cdf80 (patch)
treec9f6e2a049c227d5e58d38935aaedb593ce33368
parent79d867c2e683f7080a8724a54a4a12ac0ce1f837 (diff)
usb: Don't init pointer to zero, but NULL
The pointer should always be inited to NULL, not zero (0). These are two different things and not necessarily equal. Signed-off-by: Marek Vasut <[email protected]> Cc: Chin Liang See <[email protected]> Cc: Dinh Nguyen <[email protected]> Cc: Hans de Goede <[email protected]> Cc: Stefan Roese <[email protected]> Cc: Stephen Warren <[email protected]>
-rw-r--r--common/usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usb.c b/common/usb.c
index 4d0de4d87e8..63429d4d5a9 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -1064,7 +1064,7 @@ static int usb_prepare_device(struct usb_device *dev, int addr, bool do_read,
int usb_select_config(struct usb_device *dev)
{
- unsigned char *tmpbuf = 0;
+ unsigned char *tmpbuf = NULL;
int err;
err = get_descriptor_len(dev, USB_DT_DEVICE_SIZE, USB_DT_DEVICE_SIZE);