From: Marek Vasut Date: Tue, 26 Apr 2016 23:55:10 +0000 (+0200) Subject: usb: Don't init pointer to zero, but NULL X-Git-Tag: v2016.05~8^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f1b4302e352800b8b651a300281a7fae67cdf80;p=u-boot 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 Cc: Chin Liang See Cc: Dinh Nguyen Cc: Hans de Goede Cc: Stefan Roese Cc: Stephen Warren --- diff --git a/common/usb.c b/common/usb.c index 4d0de4d87e..63429d4d5a 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);