From: Michał Mirosław Date: Wed, 16 Nov 2011 14:05:33 +0000 (+0000) Subject: net: drivers: use bool type instead of double negation X-Git-Url: https://bbs.cooldavid.org/git/?p=jme.git;a=commitdiff_plain;h=f0a10b939bf467d2f62784e3deecae58416bc222;hp=ae968fb3497bc74c6dcb86ace5b7ad038dac613c 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 Signed-off-by: Michał Mirosław Signed-off-by: David S. Miller --- diff --git a/jme.c b/jme.c index aee72e4..839b914 100644 --- a/jme.c +++ b/jme.c @@ -1883,7 +1883,7 @@ jme_fill_tx_map(struct pci_dev *pdev, struct page *page, u32 page_offset, u32 len, - u8 hidma) + bool hidma) { dma_addr_t dmaaddr; @@ -1917,7 +1917,7 @@ jme_map_tx_skb(struct jme_adapter *jme, struct sk_buff *skb, int idx) struct jme_ring *txring = &(jme->txring[0]); struct txdesc *txdesc = txring->desc, *ctxdesc; struct jme_buffer_info *txbi = txring->bufinf, *ctxbi; - u8 hidma = !!(jme->dev->features & NETIF_F_HIGHDMA); + bool hidma = jme->dev->features & NETIF_F_HIGHDMA; int i, nr_frags = skb_shinfo(skb)->nr_frags; int mask = jme->tx_ring_mask; const struct skb_frag_struct *frag;