optee: Fix NULL but dereferenced coccicheck error
authorYang Li <yang.lee@linux.alibaba.com>
Mon, 22 Nov 2021 02:20:50 +0000 (10:20 +0800)
committerJens Wiklander <jens.wiklander@linaro.org>
Mon, 29 Nov 2021 21:02:25 +0000 (22:02 +0100)
commitb98aee466d194788bd651cb375b0e0f7e0e69865
treea5d59ae60e4b6e3fb168b9ac5e8c0ca982d9d4cd
parent6749e69c4dadd352bdfdb306513aa48cc15fbdd6
optee: Fix NULL but dereferenced coccicheck error

Eliminate the following coccicheck warning:
./drivers/tee/optee/smc_abi.c:1508:12-15: ERROR: optee is NULL but
dereferenced.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Fixes: 6749e69c4dad ("optee: add asynchronous notifications")
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/smc_abi.c