Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753806AbbHKWHa (ORCPT ); Tue, 11 Aug 2015 18:07:30 -0400 Received: from mail-io0-f178.google.com ([209.85.223.178]:35326 "EHLO mail-io0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753060AbbHKWH3 (ORCPT ); Tue, 11 Aug 2015 18:07:29 -0400 From: Junsu Shin To: martyn.welch@ge.com, manohar.vanga@gmail.com, gregkh@linuxfoundation.org Cc: navyasri.tech@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Junsu Shin Subject: [PATCH] staging: vme: devices: fix NULL comparison style Date: Tue, 11 Aug 2015 17:07:14 -0500 Message-Id: <1439330834-10320-1-git-send-email-jjunes0@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1269 Lines: 37 This is a patch to vme_pio2_core.c that fixes up the NULL comparison style. Signed-off-by: Junsu Shin --- drivers/staging/vme/devices/vme_pio2_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/vme/devices/vme_pio2_core.c b/drivers/staging/vme/devices/vme_pio2_core.c index 767b2ef..9341154 100644 --- a/drivers/staging/vme/devices/vme_pio2_core.c +++ b/drivers/staging/vme/devices/vme_pio2_core.c @@ -216,7 +216,7 @@ static int pio2_probe(struct vme_dev *vdev) int vec; card = kzalloc(sizeof(struct pio2_card), GFP_KERNEL); - if (card == NULL) { + if (!card) { retval = -ENOMEM; goto err_struct; } @@ -281,7 +281,7 @@ static int pio2_probe(struct vme_dev *vdev) /* Get a master window and position over regs */ card->window = vme_master_request(vdev, VME_A24, VME_SCT, VME_D16); - if (card->window == NULL) { + if (!card->window) { dev_err(&card->vdev->dev, "Unable to assign VME master resource\n"); retval = -EIO; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/