[PATCH V2 01/12] clk: shmobile: add CPG driver for rz-platforms
Geert Uytterhoeven
geert at linux-m68k.org
Thu Mar 6 08:21:56 EST 2014
Hi Wolfram,
On Thu, Mar 6, 2014 at 2:06 PM, Wolfram Sang <wsa at the-dreams.de> wrote:
>> > + num_clks = of_property_count_strings(np, "clock-output-names");
>> > + if (WARN(num_clks <= 0, "can't count CPG clocks\n"))
>> > + goto out;
>>
>> You can return directly instead of goto out.
>
> I personally don't prefer the mixture of goto and direct return. Please
> say if you insist on that.
Here it's not really a mix: there is a strict separation between cases where
cleanup/error handling is done and case where it's not.
So it serves as a clue for the reader, who doesn't have to scroll down to see
that no cleanup/error handling is done later.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
More information about the linux-arm-kernel
mailing list