Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316892
b: refs/heads/master
c: 70617db
h: refs/heads/master
v: v3
  • Loading branch information
Felipe Balbi committed Jun 3, 2012
1 parent 8627ebb commit 09bfeaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dc1737cdd75b692dbdec0e0e22439a0ce1089488
refs/heads/master: 70617db7ad7395498e6bc54c634199bf895426c6
10 changes: 6 additions & 4 deletions trunk/drivers/usb/gadget/omap_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,12 @@ omap_alloc_request(struct usb_ep *ep, gfp_t gfp_flags)
struct omap_req *req;

req = kzalloc(sizeof(*req), gfp_flags);
if (req) {
req->req.dma = DMA_ADDR_INVALID;
INIT_LIST_HEAD(&req->queue);
}
if (!req)
return NULL;

req->req.dma = DMA_ADDR_INVALID;
INIT_LIST_HEAD(&req->queue);

return &req->req;
}

Expand Down

0 comments on commit 09bfeaa

Please sign in to comment.