aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorYong Zhi <yong.zhi@intel.com>2019-02-01 12:23:37 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-02-07 11:57:51 -0500
commit505ecd35182f1ba006ada118c85deca22b88ebcb (patch)
treecafe368ea5b718342dd4596bc7a95795dcac803d /drivers/staging/media
parentmedia: ipu3-imgu: Use MENU type for mode control (diff)
downloadwireguard-linux-505ecd35182f1ba006ada118c85deca22b88ebcb.tar.xz
wireguard-linux-505ecd35182f1ba006ada118c85deca22b88ebcb.zip
media: ipu3-imgu: Remove dead code for NULL check
Since ipu3_css_buf_dequeue() never returns NULL, remove the dead code to fix static checker warning: drivers/staging/media/ipu3/ipu3.c:493 imgu_isr_threaded() warn: 'b' is an error pointer or valid Reported-by: Dan Carpenter <dan.carpenter@oracle.com> [Bug report: https://lore.kernel.org/linux-media/20190104122856.GA1169@kadam/] Signed-off-by: Yong Zhi <yong.zhi@intel.com> Reviewed-by: Tomasz Figa <tfiga@chromium.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/staging/media')
-rw-r--r--drivers/staging/media/ipu3/ipu3.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/staging/media/ipu3/ipu3.c b/drivers/staging/media/ipu3/ipu3.c
index d521b3afb8b1..839d9398f8e9 100644
--- a/drivers/staging/media/ipu3/ipu3.c
+++ b/drivers/staging/media/ipu3/ipu3.c
@@ -489,12 +489,11 @@ static irqreturn_t imgu_isr_threaded(int irq, void *imgu_ptr)
mutex_unlock(&imgu->lock);
} while (PTR_ERR(b) == -EAGAIN);
- if (IS_ERR_OR_NULL(b)) {
- if (!b || PTR_ERR(b) == -EBUSY) /* All done */
- break;
- dev_err(&imgu->pci_dev->dev,
- "failed to dequeue buffers (%ld)\n",
- PTR_ERR(b));
+ if (IS_ERR(b)) {
+ if (PTR_ERR(b) != -EBUSY) /* All done */
+ dev_err(&imgu->pci_dev->dev,
+ "failed to dequeue buffers (%ld)\n",
+ PTR_ERR(b));
break;
}