[PATCH 2/6] MFD:rtsx: Remove redundant code

From: wei_wang
Date: Tue Jan 29 2013 - 02:22:32 EST


From: Wei WANG <wei_wang@xxxxxxxxxxxxxx>

In function rtsx_pci_add_sg_tbl, the statement "ptr++" is useless.

Signed-off-by: Wei WANG <wei_wang@xxxxxxxxxxxxxx>
Acked-by: Borislav Petkov <bp@xxxxxxxxx>
---
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 9fc5700..c021ce3 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++;
}

--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/