tee: optee: remove need_resched() before cond_resched()
authorJens Wiklander <jens.wiklander@linaro.org>
Mon, 25 Jan 2021 09:36:57 +0000 (10:36 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Wed, 3 Feb 2021 07:11:11 +0000 (08:11 +0100)
commit958567600517fd15b7f35ca1a8be0104f0eb0686
tree1c8b042daf7348181090c0848abf36236b4115fe
parentdcb3b06d9c34f33a249f65c08805461fb0c4325b
tee: optee: remove need_resched() before cond_resched()

Testing need_resched() before cond_resched() is not needed as an
equivalent test is done internally in cond_resched(). So drop the
need_resched() test.

Fixes: dcb3b06d9c34 ("tee: optee: replace might_sleep with cond_resched")
Reviewed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Tested-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Tested-by: Sumit Garg <sumit.garg@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/call.c