|
@@ -964,7 +964,7 @@ static int setup_req (struct usb_ep *ep, struct usb_request *req, u16 len)
|
|
|
}
|
|
|
if (len > sizeof (dev->rbuf))
|
|
|
req->buf = kmalloc(len, GFP_ATOMIC);
|
|
|
- if (req->buf == 0) {
|
|
|
+ if (req->buf == NULL) {
|
|
|
req->buf = dev->rbuf;
|
|
|
return -ENOMEM;
|
|
|
}
|
|
@@ -1394,7 +1394,7 @@ gadgetfs_setup (struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
|
|
|
dev->setup_abort = 0;
|
|
|
if (dev->state == STATE_DEV_UNCONNECTED) {
|
|
|
#ifdef CONFIG_USB_GADGET_DUALSPEED
|
|
|
- if (gadget->speed == USB_SPEED_HIGH && dev->hs_config == 0) {
|
|
|
+ if (gadget->speed == USB_SPEED_HIGH && dev->hs_config == NULL) {
|
|
|
spin_unlock(&dev->lock);
|
|
|
ERROR (dev, "no high speed config??\n");
|
|
|
return -EINVAL;
|