Skip to content
Commit f20b4f22 authored by Colin Ian King's avatar Colin Ian King Committed by Jarkko Sakkinen
Browse files

tpm: st33zp24: remove redundant null check on chip



Currently chip is being dereferenced by the call to dev_get_drvdata
before it is being null checked, however, chip can never be null, so
this check is misleading and redundant. Remove it.

Detected by CoverityScan, CID#1357806 ("Dereference before null check")

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarJarkko Sakkinen <jarkkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkkko.sakkinen@linux.intel.com>
parent 92980756
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment