staging: et131x: Remove unnecessary parentheses
authorMark Einon <mark.einon@gmail.com>
Wed, 24 Sep 2014 08:54:42 +0000 (09:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 01:58:12 +0000 (21:58 -0400)
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/et131x/et131x.c

index cf38cf1324866f918031dfddbf890a78ce435311..c15eb6e55c3788e410811a7298ec920dbf6bbd42 100644 (file)
@@ -2638,7 +2638,7 @@ static int nic_send_packet(struct et131x_adapter *adapter, struct tcb *tcb)
                                desc[frag].len_vlan = skb_headlen(skb) / 2;
                                dma_addr = dma_map_single(&adapter->pdev->dev,
                                                          skb->data,
-                                                         (skb_headlen(skb) / 2),
+                                                         skb_headlen(skb) / 2,
                                                          DMA_TO_DEVICE);
                                desc[frag].addr_lo = lower_32_bits(dma_addr);
                                desc[frag].addr_hi = upper_32_bits(dma_addr);
@@ -2647,8 +2647,8 @@ static int nic_send_packet(struct et131x_adapter *adapter, struct tcb *tcb)
                                desc[frag].len_vlan = skb_headlen(skb) / 2;
                                dma_addr = dma_map_single(&adapter->pdev->dev,
                                                          skb->data +
-                                                         (skb_headlen(skb) / 2),
-                                                         (skb_headlen(skb) / 2),
+                                                         skb_headlen(skb) / 2,
+                                                         skb_headlen(skb) / 2,
                                                          DMA_TO_DEVICE);
                                desc[frag].addr_lo = lower_32_bits(dma_addr);
                                desc[frag].addr_hi = upper_32_bits(dma_addr);