“6743099ce57a40509a86849a22317ed4b7516911”上不存在“fs/xfs/xfs_ioctl32.c”
提交 1b701508 编写于 作者: S Sudip Mukherjee 提交者: Felipe Balbi

usb: gadget: amd5536udc: NULL comparison

A NULL comparison can be written as if (var) or if (!var).
Signed-off-by: NSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 5d31a17b
......@@ -2185,7 +2185,7 @@ static irqreturn_t udc_data_out_isr(struct udc *dev, int ep_ix)
}
/* DMA */
} else if (!ep->cancel_transfer && req != NULL) {
} else if (!ep->cancel_transfer && req) {
ret_val = IRQ_HANDLED;
/* check for DMA done */
......@@ -3189,7 +3189,7 @@ static int init_dma_pools(struct udc *dev)
/* setup */
td_stp = dma_pool_alloc(dev->stp_requests, GFP_KERNEL,
&dev->ep[UDC_EP0OUT_IX].td_stp_dma);
if (td_stp == NULL) {
if (!td_stp) {
retval = -ENOMEM;
goto err_alloc_dma;
}
......@@ -3198,7 +3198,7 @@ static int init_dma_pools(struct udc *dev)
/* data: 0 packets !? */
td_data = dma_pool_alloc(dev->stp_requests, GFP_KERNEL,
&dev->ep[UDC_EP0OUT_IX].td_phys);
if (td_data == NULL) {
if (!td_data) {
retval = -ENOMEM;
goto err_alloc_phys;
}
......@@ -3322,7 +3322,7 @@ static int udc_pci_probe(
}
dev->virt_addr = ioremap_nocache(resource, len);
if (dev->virt_addr == NULL) {
if (!dev->virt_addr) {
dev_dbg(&pdev->dev, "start address cannot be mapped\n");
retval = -EFAULT;
goto err_ioremap;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册