diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2020-07-24 09:40:27 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <krzk@kernel.org> | 2020-07-24 16:18:32 +0200 |
commit | bf77f3f4659959c60be0a12cdb1a14c4b1825124 (patch) | |
tree | 71c064d08f73d44d09a96780eeb1edc2b9168277 /drivers/memory/brcmstb_dpfe.c | |
parent | a6ca67a838826ebabe9f1c1434140459928ee5b5 (diff) |
memory: brcmstb_dpfe: Remove unneeded braces
Single statement blocks don't need braces. Fixes checkpatch warning:
WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Markus Mayer <mmayer@broadcom.com>
Diffstat (limited to 'drivers/memory/brcmstb_dpfe.c')
-rw-r--r-- | drivers/memory/brcmstb_dpfe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c index 5942380f343b..604f0e3fb112 100644 --- a/drivers/memory/brcmstb_dpfe.c +++ b/drivers/memory/brcmstb_dpfe.c @@ -379,9 +379,8 @@ static void __iomem *get_msg_ptr(struct brcmstb_dpfe_priv *priv, u32 response, void __iomem *ptr = NULL; /* There is no need to use this function for API v3 or later. */ - if (unlikely(priv->dpfe_api->version >= 3)) { + if (unlikely(priv->dpfe_api->version >= 3)) return NULL; - } msg_type = (response >> DRAM_MSG_TYPE_OFFSET) & DRAM_MSG_TYPE_MASK; offset = (response >> DRAM_MSG_ADDR_OFFSET) & DRAM_MSG_ADDR_MASK; |