Staging: i4l: Remove NULL comparison.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sat, 17 Sep 2016 23:46:44 +0000 (05:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:46:31 +0000 (13:46 +0200)
This patch removes the explicit NULL comparison. This issue was found by
checkpatch.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/i4l/act2000/act2000_isa.c

index c800da866f501b963cbf717f883dce08fa357d79..808bb3b4cc80829ff9f5050e96ae6a0f0647b847 100644 (file)
@@ -166,7 +166,7 @@ act2000_isa_config_port(act2000_card *card, unsigned short portbase)
                release_region(card->port, ISA_REGION);
                card->flags &= ~ACT2000_FLAGS_PVALID;
        }
-       if (request_region(portbase, ACT2000_PORTLEN, card->regname) == NULL)
+       if (!request_region(portbase, ACT2000_PORTLEN, card->regname))
                return -EBUSY;
        else {
                card->port = portbase;
@@ -244,7 +244,7 @@ act2000_isa_receive(act2000_card *card)
                                if (valid) {
                                        card->idat.isa.rcvlen = ((actcapi_msghdr *)&card->idat.isa.rcvhdr)->len;
                                        card->idat.isa.rcvskb = dev_alloc_skb(card->idat.isa.rcvlen);
-                                       if (card->idat.isa.rcvskb == NULL) {
+                                       if (!card->idat.isa.rcvskb) {
                                                card->idat.isa.rcvignore = 1;
                                                printk(KERN_WARNING
                                                       "act2000_isa_receive: no memory\n");