Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1205809imm; Sun, 15 Jul 2018 01:53:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe6tmGxlum/DcXumJugKHepbl5Qv9ZjuG6LSiTtDIvhHmwA4sM1qabbIXL7ImptayWybzkH X-Received: by 2002:a62:4cd3:: with SMTP id e80-v6mr13481493pfj.234.1531644829445; Sun, 15 Jul 2018 01:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531644829; cv=none; d=google.com; s=arc-20160816; b=ptqVYM3+wfSlQHmlWD/M+da3UovhXfvzFprhr+QG4qdsXMKvpDTveFXwiU63GrVDUs xmREu0y1439RLnx8zWDO6kR10EhrpZmQQRveimrSbICOpfe+BaRtjUkpPA9ikMJ6TSE2 prvgshI/M2WUK+mzuZUtYc2RQsg0MFSD/Kd4LysPCYWISV6H3W00dtH5DzLXC25s+naD eHA4S7pfNBu8k6vOvsnS9+uRsgT/EBfc7s0/LjzdhGSsIrgmaPhkihRPT4ESLNKz2929 mlGbG7KQxXVUva4rs/G5KAHkkKbMSJn8P+nsgj5XXBMOQOrXNLdct5ETESkZtPI6Uha8 2fpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=jXGkI3EamuP3pm4Rp0/7ObfckUP6X067r4qG5nb9lYM=; b=OsSIP3pFRvwWIWuqzJ4yxSEU20DrRIIUdCy9AwfOKI8XifvBLeP89s22A50hI5iNu4 DrLXp4Y65tE7v8MvRDTbWTmQP2zzAzvQm9PuvYRh6EXL38vpMd6vd81dVEnzeC+SJTnX m8v4jPdCbUU7IQfGH8TnHg7Mk/aq1mAqf0QJMYI+F9+lr7PW79WCa8+THBjsoL2e7+Xf 4RSIGZuQj+423eYU7xqTywvXTQdm/++qDq5m/7FiQLp2WdJmvrRfPmWJ06cqVu4AMM+K PpLBKict1u6ZBqTcqMu6nO4dY5lmgDGj3O6ucZZymeeILKd0x1H1OaHa27Pfkx2Clw0X 8vqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ny7DbnTK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4-v6si19704583pfc.328.2018.07.15.01.53.33; Sun, 15 Jul 2018 01:53:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ny7DbnTK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726224AbeGOJPJ (ORCPT + 99 others); Sun, 15 Jul 2018 05:15:09 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34539 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726026AbeGOJPJ (ORCPT ); Sun, 15 Jul 2018 05:15:09 -0400 Received: by mail-pg1-f194.google.com with SMTP id y5-v6so6395146pgv.1 for ; Sun, 15 Jul 2018 01:52:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=jXGkI3EamuP3pm4Rp0/7ObfckUP6X067r4qG5nb9lYM=; b=Ny7DbnTKOvSTExlKmSdL3Lh0o5535GIdXAcWKgq/TJHYy4XWRCPtTGf5iggTXomuU4 Wy8WbXEEwBUSpytwNYUDb9OA4j8hYPzgY2u+sTUbTjNBnxJHmnBDANG0C2DRMguduCfE IiPp1il0VRwU+JsDf3yqf7pWbTpJfa+/LjhuSyGb5saTjtA10/y1BUVSpndh2YTkH3Bp /M1fK4cpshe8IHGJOTvs1+ZsL5VCsqPjjCN5gAIfA+jSSn89kZANqbwr6HHHgG4Z+pEb x5moImIqYQwW+6NBFeXlNf4ryEmLZ401N5JjfNf9X4QydYtpZ3FzNAoHAQyGqxjM6LkU HMww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jXGkI3EamuP3pm4Rp0/7ObfckUP6X067r4qG5nb9lYM=; b=GcmoenMMy32QMMDI3rzVwh4SpTIvvqwbjBhJH9XR0ZDn4CviUtmHv+aSwIZ2UPogCK uJexwCoyUQ6DhFyY8O8GAgba93AUWiNU+jfnQl5jLZvmLmsmqRG7M3gxs/VDHQBFSdbw 29AxUn2Yt8trMyllsolCPkCTUxmHLshg3OSypeHvkZ7LtCl/va8Yy12YfwknhlnD+TLI t3denvXTnhK5/1p2AIJOUzro9naWUjd+GgUAYu+XCRz9AZVgm5omUvQg4JLj1KNMa6kX 3ZTK65TyI9/H2FNnqMfNMa4cOA3b34czOo0aSSdaP5XJPvUp8jBzXnsU5czuCm41p2aK egPQ== X-Gm-Message-State: AOUpUlF07eKc6TPDZH0RE/d3DVcYFYY99xofpMBUeHaLq1qwkQhzcmtV NE0Fv3hstyNqyZ3E7/s/gZA= X-Received: by 2002:a62:4083:: with SMTP id f3-v6mr13668109pfd.229.1531644776947; Sun, 15 Jul 2018 01:52:56 -0700 (PDT) Received: from raghu-VirtualBox ([116.197.184.14]) by smtp.gmail.com with ESMTPSA id j21-v6sm44007494pfn.121.2018.07.15.01.52.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Jul 2018 01:52:56 -0700 (PDT) From: RAGHU Halharvi To: devel@driverdev.osuosl.org, driverdev-devel@linuxdriverproject.org Cc: RAGHU Halharvi , 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 Message-Id: <20180713160636.8017-1-raghuhack78@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Patch fixes checkpatch warning "Possible unnecessary 'out of memory' message" Signed-off-by: RAGHU Halharvi --- 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