OSDN Git Service

staging: mt7621-pinctrl: avoid space after if condition
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Thu, 28 Jun 2018 19:02:57 +0000 (21:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2018 15:32:24 +0000 (17:32 +0200)
Adding spaces between if condition and parenthesis are not
needed at all and checkpatch script complains about them.
Fix one in driver code.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pinctrl/pinctrl-rt2880.c

index 1e49a7b..6c9517f 100644 (file)
@@ -357,7 +357,7 @@ static int rt2880_pinmux_pins(struct rt2880_priv *p)
        p->pads = devm_kcalloc(p->dev,
                p->max_pins, sizeof(struct pinctrl_pin_desc),
                GFP_KERNEL);
-       if (!p->pads || !p->gpio ) {
+       if (!p->pads || !p->gpio) {
                dev_err(p->dev, "Failed to allocate gpio data\n");
                return -ENOMEM;
        }