Hi, On 05/07/2014 05:43 AM, Himangi Saraogi wrote: > This patch moves data allocated using kzalloc to managed data allocated > using devm_kzalloc and cleans now unnecessary kfrees in probe and remove > functions.The labels out and out_mem are also removed as they are no > longer required. > > The following Coccinelle semantic patch was used for making the change: > [..] > > Signed-off-by: Himangi Saraogi <[email protected]> > --- > arch/mips/mti-sead3/sead3-i2c-drv.c | 37 > ++++++++++++++----------------------- > 1 file changed, 14 insertions(+), 23 deletions(-) > > diff --git a/arch/mips/mti-sead3/sead3-i2c-drv.c > b/arch/mips/mti-sead3/sead3-i2c-drv.c > index 1f787a6..4d72e0e 100644 > --- a/arch/mips/mti-sead3/sead3-i2c-drv.c > +++ b/arch/mips/mti-sead3/sead3-i2c-drv.c > @@ -304,22 +304,18 @@ static int sead3_i2c_platform_probe(struct > platform_device *pdev) > int ret; >[...] > - return ret; > + if (ret) > + return ret; > + ^^^^ trailing whitespace
Apart from that, the patch seems to be ok. Thanks! Tested-by: Markos Chandras <[email protected]> Reviewed-by: Markos Chandras <[email protected]> -- markos -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

