]> git.baikalelectronics.ru Git - kernel.git/commit
staging/atomisp: remove redundant null check on frame
authorColin Ian King <colin.king@canonical.com>
Mon, 13 Mar 2017 17:55:12 +0000 (17:55 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Mar 2017 00:00:37 +0000 (08:00 +0800)
commit64c35b4fa31eae1c60de428a5e088f293f67030f
tree7b0cfa94d623af77ed589e98e733c8018b157bc1
parent26bad451bee94617519831076799c1ae3b087575
staging/atomisp: remove redundant null check on frame

There is no need to perform a null check on frame as there is an earlier
null check check and return hence making the null check redundant.
Remove it.

Detected by CoverityScan, CID#1416563 ("Logically Dead Code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/frame/src/frame.c