staging: vt6655: device_free_info() warn: variable dereferenced before check
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 4 Sep 2014 22:08:36 +0000 (23:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 21:01:17 +0000 (14:01 -0700)
commitc72f65cccab03dc9524a3d7fa385f31d5b6ae377
treed18f5c3a704bfdfe34438d71aa55b126f6f689f0
parent06a3fab941da48d04fb9c00a5422a6e9740578e8
staging: vt6655: device_free_info() warn: variable dereferenced before check

pDevice is never NULL when this function is called remove the check.

This fixes smatch warning
drivers/staging/vt6655/device_main.c:1023 device_free_info() warn: variable dereferenced
before check 'pDevice' (see line 1021)

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: kbuild@01.org
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/device_main.c