From: Dan Carpenter Date: Fri, 13 Sep 2013 08:06:11 +0000 (+0300) Subject: skd: remove unneeded NULL check X-Git-Tag: next-20130919~32^2~3^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=487e90b3e347dbb5c295779ea65f6b9fe36a9271;p=karo-tx-linux.git skd: remove unneeded NULL check We already dereferenced "skdev" a few lines earlier in the debug code so my static checker complains. I audited the callers and "skdev" is never NULL here so I have removed the check. Signed-off-by: Dan Carpenter Signed-off-by: Jens Axboe --- diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index f892d95dd884..467ae1a39661 100644 --- a/drivers/block/skd_main.c +++ b/drivers/block/skd_main.c @@ -2911,7 +2911,7 @@ static void skd_do_inq_page_da(struct skd_device *skdev, inq.page_code = DRIVER_INQ_EVPD_PAGE_CODE; - if (skdev && skdev->pdev && skdev->pdev->bus) { + if (skdev->pdev && skdev->pdev->bus) { skd_get_link_info(skdev->pdev, &inq.pcie_link_speed, &inq.pcie_link_lanes); inq.pcie_bus_number = cpu_to_be16(skdev->pdev->bus->number);