Re: [PATCH] ssb: main.c: This patch removes unnecessary return statement using spatch tool

From: Michael BÃsch
Date: Fri Jan 06 2017 - 18:32:01 EST


> > @@ -1272,9 +1272,7 @@ u32 ssb_admatch_size(u32 adm)
> > default:
> > SSB_WARN_ON(1);
> > }
> > - size = (1 << (size + 1));
> > -
> > - return size;
> > + return (1 << (size + 1));
> > }
> > EXPORT_SYMBOL(ssb_admatch_size);

I'm all for cleaning up code, but I don't really see how this
change improves the code.

--
Michael

Attachment: pgpRiDHIz1h1U.pgp
Description: OpenPGP digital signature