Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 1115899e authored by Dan Carpenter's avatar Dan Carpenter Committed by Jens Wiklander
Browse files

tee: remove unnecessary NULL check in tee_shm_alloc()


Smatch complains that "ctx" isn't checked consistently:

    drivers/tee/tee_shm.c:164 tee_shm_alloc()
    warn: variable dereferenced before check 'ctx' (see line 95)

I audited the callers and "ctx" can't be NULL so the check can be
removed.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent ae83d0b4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment