summaryrefslogtreecommitdiff
path: root/drivers/staging/gdm72xx/usb_boot.c
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-09-07 12:38:22 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-13 01:24:53 (GMT)
commitc32bb25ee1b396c8d04c4c797f826afe2167eb15 (patch)
tree2bbcd899a4bc1ed5a1923695271715b3d7732b04 /drivers/staging/gdm72xx/usb_boot.c
parentea022df19395f0da090e9dcdf417d28326e15404 (diff)
downloadlinux-c32bb25ee1b396c8d04c4c797f826afe2167eb15.tar.xz
staging: gdm72xx: NULL comparison style
checkpatch complains if NULL comparison is done as if (var == NULL) Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/gdm72xx/usb_boot.c')
-rw-r--r--drivers/staging/gdm72xx/usb_boot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/gdm72xx/usb_boot.c b/drivers/staging/gdm72xx/usb_boot.c
index 50fbec3..39ca34031 100644
--- a/drivers/staging/gdm72xx/usb_boot.c
+++ b/drivers/staging/gdm72xx/usb_boot.c
@@ -159,7 +159,7 @@ int usb_boot(struct usb_device *usbdev, u16 pid)
}
tx_buf = kmalloc(DOWNLOAD_SIZE, GFP_KERNEL);
- if (tx_buf == NULL) {
+ if (!tx_buf) {
release_firmware(firm);
return -ENOMEM;
}
@@ -287,7 +287,7 @@ static int em_download_image(struct usb_device *usbdev, const char *img_name,
}
buf = kmalloc(DOWNLOAD_CHUCK + pad_size, GFP_KERNEL);
- if (buf == NULL) {
+ if (!buf) {
release_firmware(firm);
return -ENOMEM;
}