net: stmmac: remove unused variable in sysfs_display_ring
The u64 x variable in sysfs_display_ring is unused. This patch remove it. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
732fe78c07
commit
64679e565a
@ -2893,9 +2893,7 @@ static void sysfs_display_ring(void *head, int size, int extend_desc,
|
||||
struct dma_desc *p = (struct dma_desc *)head;
|
||||
|
||||
for (i = 0; i < size; i++) {
|
||||
u64 x;
|
||||
if (extend_desc) {
|
||||
x = *(u64 *) ep;
|
||||
seq_printf(seq, "%d [0x%x]: 0x%x 0x%x 0x%x 0x%x\n",
|
||||
i, (unsigned int)virt_to_phys(ep),
|
||||
le32_to_cpu(ep->basic.des0),
|
||||
@ -2904,7 +2902,6 @@ static void sysfs_display_ring(void *head, int size, int extend_desc,
|
||||
le32_to_cpu(ep->basic.des3));
|
||||
ep++;
|
||||
} else {
|
||||
x = *(u64 *) p;
|
||||
seq_printf(seq, "%d [0x%x]: 0x%x 0x%x 0x%x 0x%x\n",
|
||||
i, (unsigned int)virt_to_phys(ep),
|
||||
le32_to_cpu(p->des0), le32_to_cpu(p->des1),
|
||||
|
Reference in New Issue
Block a user