From: SF Markus Elfring Date: Thu, 21 Jul 2016 13:35:03 +0000 Subject: Re: staging: ks7010: Delete unnecessary uses of the variable "retval" Message-Id: List-Id: References: <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <66bd684a-98f1-0ec4-aa95-1a966d7c4e90@users.sourceforge.net> <6a8f4258-188e-36f6-28fa-1626c29cf361@users.sourceforge.net> <20160720155333.GE1688@katana> <20160721062726.GC1664@katana> In-Reply-To: <20160721062726.GC1664@katana> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Wolfram Sang Cc: Julia Lawall , Greg Kroah-Hartman , devel@driverdev.osuosl.org, LKML , kernel-janitors@vger.kernel.org >>>>> if (atomic_read(&priv->sleepstatus.status) = 0) { >>>>> rw_data = GCR_B_DOZE; >>>>> - retval >>>>> - ks7010_sdio_write(priv, GCR_B, &rw_data, sizeof(rw_data)); >>>>> - if (retval) { >>>>> + if (ks7010_sdio_write(priv, >>>>> + GCR_B, >>>>> + &rw_data, >>>>> + sizeof(rw_data))) { >>>> >>>> A multi-line function call in an if test does not look nice at all. The >>>> original code was an easy-to-read expectable pattern. >>> >>> I agree. I am not strict on the 80 char limit, especially in cases like >>> the above. Will this line length limitation trigger any more collateral evolution in the discussed software module? >> Would you try an other source code formatting for the suggested change pattern? > > I don't understand the question? Can you follow expectations around the proposed refactoring of any function implementations? Regards, Markus