summaryrefslogtreecommitdiff
path: root/drivers/clk/at91/clk-generated.c
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2020-07-22 10:38:17 +0300
committerStephen Boyd <sboyd@kernel.org>2020-07-24 12:19:08 +0300
commit42324d953b38e74cf5cb05a02c81d4922a2ddcd5 (patch)
tree5f8529d2163ab4ec95f74ef40b10bec7910f809c /drivers/clk/at91/clk-generated.c
parente1e3e7008a90f9ffe0161191bd64a4c06f0d417a (diff)
downloadlinux-42324d953b38e74cf5cb05a02c81d4922a2ddcd5.tar.xz
clk: at91: replace conditional operator with double logical not
Replace conditional operator with double logical not as code may be simpler to read. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/1595403506-8209-10-git-send-email-claudiu.beznea@microchip.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/at91/clk-generated.c')
-rw-r--r--drivers/clk/at91/clk-generated.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/at91/clk-generated.c b/drivers/clk/at91/clk-generated.c
index f8e557e0e1b8..2448bdc63425 100644
--- a/drivers/clk/at91/clk-generated.c
+++ b/drivers/clk/at91/clk-generated.c
@@ -83,7 +83,7 @@ static int clk_generated_is_enabled(struct clk_hw *hw)
regmap_read(gck->regmap, gck->layout->offset, &status);
spin_unlock_irqrestore(gck->lock, flags);
- return status & AT91_PMC_PCR_GCKEN ? 1 : 0;
+ return !!(status & AT91_PMC_PCR_GCKEN);
}
static unsigned long