diff options
author | Jason Yan <[email protected]> | 2020-04-20 20:35:16 +0800 |
---|---|---|
committer | Bjorn Andersson <[email protected]> | 2020-04-20 12:51:55 -0700 |
commit | 820f63652bb45f2a2de4f4ddf82577991fdb3d11 (patch) | |
tree | 7b952ced42cc8512e053f1a09670cd626ffd6567 | |
parent | 704887278b3fb6e72ef767e56fbae4129e567c48 (diff) |
firmware: qcom_scm: Remove unneeded conversion to bool
The '>' expression itself is bool, no need to convert it to bool again.
This fixes the following coccicheck warning:
drivers/firmware/qcom_scm.c:946:25-30: WARNING: conversion to bool not
needed here
Reviewed-by: Bjorn Andersson <[email protected]>
Signed-off-by: Jason Yan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
-rw-r--r-- | drivers/firmware/qcom_scm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index 059bb0fbae9e..f714dc010109 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -943,7 +943,7 @@ bool qcom_scm_hdcp_available(void) qcom_scm_clk_disable(); - return ret > 0 ? true : false; + return ret > 0; } EXPORT_SYMBOL(qcom_scm_hdcp_available); |