tee: remove unnecessary NULL check in tee_shm_alloc()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 7 Apr 2020 09:30:28 +0000 (12:30 +0300)
committerJens Wiklander <jens.wiklander@linaro.org>
Mon, 20 Apr 2020 11:12:01 +0000 (13:12 +0200)
commit1115899e7aad71bc36100c3fa1d0b99cff9263e6
tree2f1021baa0381ce6ecbd76d7f9fd2721095bf3ec
parentae83d0b416db002fe95601e7f97f64b59514d936
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/tee_shm.c