From mboxrd@z Thu Jan 1 00:00:00 1970 From: sudipm.mukherjee@gmail.com (Sudip Mukherjee) Date: Sat, 11 Oct 2014 10:28:03 +0530 Subject: [PATCH] staging: Fix spacing between function name and parentheses In-Reply-To: <1412992548-32011-1-git-send-email-xerofoify@gmail.com> References: <1412992548-32011-1-git-send-email-xerofoify@gmail.com> Message-ID: <20141011045803.GA3112@sudip-PC> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Fri, Oct 10, 2014 at 09:55:48PM -0400, Nicholas Krause wrote: > Fixes checkpatch coding style warning about unneeded space > between function name an parentheses. > > Signed-off-by: Nicholas Krause > --- > Untested > drivers/staging/octeon-usb/octeon-hcd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c > index 5f9db4c..bbeb0cc 100644 > --- a/drivers/staging/octeon-usb/octeon-hcd.c > +++ b/drivers/staging/octeon-usb/octeon-hcd.c > @@ -412,7 +412,7 @@ struct octeon_hcd { > type c; \ > while (1) { \ > c.u32 = __cvmx_usb_read_csr32(usb, address); \ > - if (c.s.field op (value)) { \ > + if (c.s.field op(value)) { \ have you read the code before modifying it? this is not a function. have you seen how CVMX_WAIT_FOR_FIELD32 is being called? on every call of CVMX_WAIT_FOR_FIELD32 op is the operator "==" so when called the macro will be c.s.field == (value). if your patch is applied then it will become c.s.field ==(value) .. will that be correct ? thanks sudip > result = 0; \ > break; \ > } else if (cvmx_get_cycle() > done) { \ > -- > 1.9.1 > > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies