Message ID | 19e2c741f89b80b9d1640ff00902b1cc3f76a171.1356319097.git.wei_wang@realsil.com.cn (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Mon, Dec 24, 2012 at 02:03:24PM +0800, wei_wang@realsil.com.cn wrote: > From: Wei WANG <wei_wang@realsil.com.cn> > > Signed-off-by: Wei WANG <wei_wang@realsil.com.cn> > --- > drivers/mfd/rtsx_pcr.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c > index 3a44efa..fa2c2bc 100644 > --- a/drivers/mfd/rtsx_pcr.c > +++ b/drivers/mfd/rtsx_pcr.c > @@ -325,7 +325,6 @@ static void rtsx_pci_add_sg_tbl(struct rtsx_pcr *pcr, > val = ((u64)addr << 32) | ((u64)len << 12) | option; > > put_unaligned_le64(val, ptr); > - ptr++; > pcr->sgi++; Hmm, one has to look at the whole function to understand that the ptr++ statement is actually useless. A sentence or two as a the commit message wouldn't hurt, IMHO. Thanks.
diff --git a/drivers/mfd/rtsx_pcr.c b/drivers/mfd/rtsx_pcr.c index 3a44efa..fa2c2bc 100644 --- a/drivers/mfd/rtsx_pcr.c +++ b/drivers/mfd/rtsx_pcr.c @@ -325,7 +325,6 @@ static void rtsx_pci_add_sg_tbl(struct rtsx_pcr *pcr, val = ((u64)addr << 32) | ((u64)len << 12) | option; put_unaligned_le64(val, ptr); - ptr++; pcr->sgi++; }