diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2011-11-16 09:05:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-16 23:12:20 -0500 |
commit | 3ad9b358e03fd9dbf6705721490c811b666b0fe2 (patch) | |
tree | 4fdb8fa7daee75ab9daffc9d4870afe1a6fd4a3b /drivers/net/ethernet/jme.c | |
parent | 09da71b1212f900cca390d2bffc32b2ae4e4eee2 (diff) |
net: drivers: use bool type instead of double negation
Save some punctuation by using bool type's property equivalent to
doubled negation operator.
Reported-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/jme.c')
-rw-r--r-- | drivers/net/ethernet/jme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/jme.c b/drivers/net/ethernet/jme.c index df3ab831b1ad..5c0b531949e2 100644 --- a/drivers/net/ethernet/jme.c +++ b/drivers/net/ethernet/jme.c | |||
@@ -1883,7 +1883,7 @@ jme_fill_tx_map(struct pci_dev *pdev, | |||
1883 | struct page *page, | 1883 | struct page *page, |
1884 | u32 page_offset, | 1884 | u32 page_offset, |
1885 | u32 len, | 1885 | u32 len, |
1886 | u8 hidma) | 1886 | bool hidma) |
1887 | { | 1887 | { |
1888 | dma_addr_t dmaaddr; | 1888 | dma_addr_t dmaaddr; |
1889 | 1889 | ||
@@ -1917,7 +1917,7 @@ jme_map_tx_skb(struct jme_adapter *jme, struct sk_buff *skb, int idx) | |||
1917 | struct jme_ring *txring = &(jme->txring[0]); | 1917 | struct jme_ring *txring = &(jme->txring[0]); |
1918 | struct txdesc *txdesc = txring->desc, *ctxdesc; | 1918 | struct txdesc *txdesc = txring->desc, *ctxdesc; |
1919 | struct jme_buffer_info *txbi = txring->bufinf, *ctxbi; | 1919 | struct jme_buffer_info *txbi = txring->bufinf, *ctxbi; |
1920 | u8 hidma = !!(jme->dev->features & NETIF_F_HIGHDMA); | 1920 | bool hidma = jme->dev->features & NETIF_F_HIGHDMA; |
1921 | int i, nr_frags = skb_shinfo(skb)->nr_frags; | 1921 | int i, nr_frags = skb_shinfo(skb)->nr_frags; |
1922 | int mask = jme->tx_ring_mask; | 1922 | int mask = jme->tx_ring_mask; |
1923 | const struct skb_frag_struct *frag; | 1923 | const struct skb_frag_struct *frag; |