drivers: qcom: rpmh: fix unwanted error check for get_tcs_of_type()
authorRaju P.L.S.S.S.N <rplsssn@codeaurora.org>
Fri, 13 Jul 2018 13:45:46 +0000 (19:15 +0530)
committerAndy Gross <andy.gross@linaro.org>
Sat, 21 Jul 2018 18:47:22 +0000 (13:47 -0500)
commit6c805adf17d491ea66d3cf80db3ada75b7180268
tree131462355eeb199c3dc61db3e12bc9187b9273e1
parentefa1c257b3fc7ef2a1db604b260784cc8bcdfd23
drivers: qcom: rpmh: fix unwanted error check for get_tcs_of_type()

The patch fixes the bug reported by Dan Carpenter.
It removes the unnecessary err check for ‘tcs’ reported by
static checker warning:

drivers/soc/qcom/rpmh-rsc.c:111 tcs_invalidate()
warn: 'tcs' isn't an ERR_PTR
See also:
drivers/soc/qcom/rpmh-rsc.c:178 get_tcs_for_msg() warn: 'tcs' isn't
an ERR_PTR
drivers/soc/qcom/rpmh-rsc.c:180 get_tcs_for_msg() warn: 'tcs' isn't
an ERR_PTR

https://www.spinics.net/lists/linux-soc/msg04624.html

Fixes: 9a3afcf ("drivers: qcom: rpmh-rsc: allow invalidation
of sleep/wake TCS")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
Reviewed-by: Lina Iyer <ilina@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/rpmh-rsc.c