From: RAGHU Halharvi <raghuhack78@gmail.com> To: devel@driverdev.osuosl.org, driverdev-devel@linuxdriverproject.org Cc: RAGHU Halharvi <raghuhack78@gmail.com>, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, wsa@the-dreams.de Subject: [PATCH] ks7010_sdio:Fix checkpatch out of memory warning Date: Fri, 13 Jul 2018 21:36:36 +0530 [thread overview] Message-ID: <20180713160636.8017-1-raghuhack78@gmail.com> (raw) * Patch fixes checkpatch warning "Possible unnecessary 'out of memory' message" Signed-off-by: RAGHU Halharvi <raghuhack78@gmail.com> --- drivers/staging/ks7010/ks7010_sdio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index b8f55a11ee1c..972b01a0257d 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -957,10 +957,8 @@ static int send_stop_request(struct sdio_func *func) card = sdio_get_drvdata(func); pp = kzalloc(hif_align_size(sizeof(*pp)), GFP_KERNEL); - if (!pp) { - netdev_err(card->priv->net_dev, "allocate memory failed..\n"); + if (!pp) return -ENOMEM; - } size = sizeof(*pp) - sizeof(pp->header.size); pp->header.size = cpu_to_le16((uint16_t)size); -- 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: RAGHU Halharvi <raghuhack78@gmail.com> To: devel@driverdev.osuosl.org, driverdev-devel@linuxdriverproject.org Cc: RAGHU Halharvi <raghuhack78@gmail.com>, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, wsa@the-dreams.de Subject: [PATCH] staging: ks7010_sdio:Fix checkpatch out of memory warning Date: Fri, 13 Jul 2018 21:36:36 +0530 [thread overview] Message-ID: <20180713160636.8017-1-raghuhack78@gmail.com> (raw) * Patch fixes checkpatch warning "Possible unnecessary 'out of memory' message" Signed-off-by: RAGHU Halharvi <raghuhack78@gmail.com> --- drivers/staging/ks7010/ks7010_sdio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c index b8f55a11ee1c..972b01a0257d 100644 --- a/drivers/staging/ks7010/ks7010_sdio.c +++ b/drivers/staging/ks7010/ks7010_sdio.c @@ -957,10 +957,8 @@ static int send_stop_request(struct sdio_func *func) card = sdio_get_drvdata(func); pp = kzalloc(hif_align_size(sizeof(*pp)), GFP_KERNEL); - if (!pp) { - netdev_err(card->priv->net_dev, "allocate memory failed..\n"); + if (!pp) return -ENOMEM; - } size = sizeof(*pp) - sizeof(pp->header.size); pp->header.size = cpu_to_le16((uint16_t)size); -- 2.17.1
next reply other threads:[~2018-07-15 8:54 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-07-13 16:06 RAGHU Halharvi [this message] 2018-07-13 16:06 ` [PATCH] staging: ks7010_sdio:Fix checkpatch out of memory warning RAGHU Halharvi 2018-07-16 10:01 ` [PATCH] " Greg KH 2018-07-16 10:01 ` Greg KH 2018-07-16 10:02 ` [PATCH] staging: " Greg KH 2018-07-16 10:02 ` Greg KH
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180713160636.8017-1-raghuhack78@gmail.com \ --to=raghuhack78@gmail.com \ --cc=devel@driverdev.osuosl.org \ --cc=driverdev-devel@linuxdriverproject.org \ --cc=gregkh@linuxfoundation.org \ --cc=linux-kernel@vger.kernel.org \ --cc=wsa@the-dreams.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.