]> Pileus Git - ~andy/linux/blobdiff - drivers/staging/bcm/InterfaceMisc.c
Staging: bcm: Change the style of comparing structures to null in InterfaceMisc.c.
[~andy/linux] / drivers / staging / bcm / InterfaceMisc.c
index 5a4768ddd1ca5ffb1cca8447f7af3b2cbe58465f..f7166f1be5fcbf625ce53216ce5581c66c284b9e 100644 (file)
@@ -8,7 +8,7 @@ int InterfaceRDM(PS_INTERFACE_ADAPTER psIntfAdapter,
        int bytes;
        unsigned short usRetries = 0;
 
-       if (psIntfAdapter == NULL) {
+       if (!psIntfAdapter) {
                BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_PRINTK, 0, 0, "Interface Adapter is NULL");
                return -EINVAL;
        }
@@ -65,7 +65,7 @@ int InterfaceWRM(PS_INTERFACE_ADAPTER psIntfAdapter,
        int retval = 0;
        unsigned short usRetries = 0;
 
-       if (psIntfAdapter == NULL) {
+       if (!psIntfAdapter) {
                BCM_DEBUG_PRINT(psIntfAdapter->psAdapter, DBG_TYPE_PRINTK, 0, 0, "Interface Adapter  is NULL");
                return -EINVAL;
        }
@@ -193,7 +193,7 @@ VOID Bcm_kill_all_URBs(PS_INTERFACE_ADAPTER psIntfAdapter)
         */
 
        /* Cancel submitted Interrupt-URB's */
-       if (psIntfAdapter->psInterruptUrb != NULL) {
+       if (psIntfAdapter->psInterruptUrb) {
                if (psIntfAdapter->psInterruptUrb->status == -EINPROGRESS)
                        usb_kill_urb(psIntfAdapter->psInterruptUrb);
        }