summaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm/InterfaceMisc.c
diff options
context:
space:
mode:
authorKevin McKinney2012-10-13 05:49:33 +0200
committerGreg Kroah-Hartman2012-10-19 22:42:23 +0200
commitde3615f46cc5892a82f18324e62ec2c5c99e959f (patch)
tree0dbc0e4923b13cf8c66a1a7c0623be8e9bce0a76 /drivers/staging/bcm/InterfaceMisc.c
parentStaging: bcm: Rename PVOID to void * in InterfaceMisc.c (diff)
downloadkernel-qcow2-linux-de3615f46cc5892a82f18324e62ec2c5c99e959f.tar.gz
kernel-qcow2-linux-de3615f46cc5892a82f18324e62ec2c5c99e959f.tar.xz
kernel-qcow2-linux-de3615f46cc5892a82f18324e62ec2c5c99e959f.zip
Staging: bcm: Change the style of comparing structures to null in InterfaceMisc.c.
This patch changes the style of comparing structures to null. Instead of this: "if (foo == NULL) {" or "if (foo != NULL) {", the new logic uses: "if (!foo) {" or "if (foo) {". Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/bcm/InterfaceMisc.c')
-rw-r--r--drivers/staging/bcm/InterfaceMisc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/bcm/InterfaceMisc.c b/drivers/staging/bcm/InterfaceMisc.c
index 5a4768ddd1ca..f7166f1be5fc 100644
--- a/drivers/staging/bcm/InterfaceMisc.c
+++ b/drivers/staging/bcm/InterfaceMisc.c
@@ -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);
}