Re: [PATCH] Frees gate after if statement in clk-sunxi.c

From: Russell King - ARM Linux
Date: Mon Jun 16 2014 - 04:16:01 EST


On Sun, Jun 15, 2014 at 11:31:41PM -0400, Nick Krause wrote:
> Seems the bug is fixed , don't worry about resent patch.
> Thanks Nick
>
> On Sun, Jun 15, 2014 at 11:21 PM, Nick Krause <xerofoify@xxxxxxxxx> wrote:
> > @@ -42,6 +42,7 @@ static void __init sun4i_osc_clk_setup(struct
> > device_node *node)
> > u32 rate;
> >
> > if (of_property_read_u32(node, "clock-frequency", &rate))
> > + kfree(gate);
> > return;

In any case, the kernel is not coded in Python.

C uses braces { } to enclose blocks of code, and does not care about
indentation - indentation is meaningless to C. Python purely identifies
blocks of code by indentation alone.

Please take account of the programming language when creating patches.

--
FTTC broadband for 0.8mile line: now at 9.7Mbps down 460kbps up... slowly
improving, and getting towards what was expected from it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/