OSDN Git Service

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)
commit03028868eb195dad2ab69f81776779b91c3f9a42
tree7b0cfa94d623af77ed589e98e733c8018b157bc1
parent39c116dcfd5f4df42167f06414dd81fba0ffe74c
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