Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4683910ybi; Mon, 3 Jun 2019 15:30:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxVNwOz6Y2gsoQyfrIMfF20DrFWuiJKxbMb0sMiZ/GD+ZOL9k0pUltFVIJggkMmaMl75yPv X-Received: by 2002:a65:4786:: with SMTP id e6mr31330202pgs.85.1559601049633; Mon, 03 Jun 2019 15:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559601049; cv=none; d=google.com; s=arc-20160816; b=QfpY62h7q9NfZNFCZlp6OAGpfQQjLEPfVGl5kfd2taxxFrh7GjJ5LY+amN1XQ+SN90 r/H2NYo1gXGFkuBP3psmTDVCu0opjAwJiK0HhzYUDsNiqs4vJV9hMza7vHdJaXVrMwaC ULSKLnU9+GMmNfVYCroznkp08tvLm3ZpRqy3a0OUa+HTxdH5PLceWYTBZAQ4p7RnOrTQ Lubf+JRzKYqz1LSRsLWeeFu+SMNqwbhI9cue1Pc5+Xvbx1mSYfarAL6Kubnt0D7JyITa TQmnan7w2PKYyBzNmKz2wNU3NupTI9o4TmT7iqijNXP08AsEYBbAKMFfH2SlFRSKLfsg 4alA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=knrbzBuDehhtfPEvKniXQQfSPEDHGGizKqNa8Zubbfg=; b=RPtb732Q6edL/jA23Het91qq2MJvBzMFo08wExFE8wJLTbtabml2BTZOGW5h0SJiF6 Z84UtD9fpe5z58OyJ8cIgprbRMsA1P+/A49PoyewQiqUCQCPfTts6kCAexZ/2HzzQtJ2 f8FEe4RthIYBpT7G+hlKsz/i85ePRDz+SoAMw0Jc8GHh937cpZGvJXz/XCVEwp7N6D5L xCJALYIsH7IaiWZWuoYkPc6O2ju5pmvTUFMspWxSxEmhEdJyQ/Gk17mNCTRain710Tr2 BTnx3K0ltX7Hmegs1LeXImpOscWlZyu3Eeln5jvTOuim4UN86kPxi55zXR0zzFP+xWcW 5eBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nikanor-nu.20150623.gappssmtp.com header.s=20150623 header.b=EjM5lDCi; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d137si20167306pga.23.2019.06.03.15.30.32; Mon, 03 Jun 2019 15:30: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=@nikanor-nu.20150623.gappssmtp.com header.s=20150623 header.b=EjM5lDCi; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726604AbfFCW31 (ORCPT + 99 others); Mon, 3 Jun 2019 18:29:27 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:43274 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbfFCW3Y (ORCPT ); Mon, 3 Jun 2019 18:29:24 -0400 Received: by mail-lf1-f68.google.com with SMTP id j29so927534lfk.10 for ; Mon, 03 Jun 2019 15:29:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikanor-nu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=knrbzBuDehhtfPEvKniXQQfSPEDHGGizKqNa8Zubbfg=; b=EjM5lDCiMw6pXgAainRP5g/6sW/3yKfXeYL1CNZoC0BQuAktWkxX3dyb5aZUPQJUev UZlr4MdGCD597hOvjCTD3/jxp+mVmm7WTZZDDv24f1W9CVjKOREZWCsIoKhsKMCpYQSF gBxK/bgtj2QQXNZ6srHy9cnbWtRp5R4vbH50vu0azBEUKMn/jY22QdAbEDkSmBqgVG8u s1CxX8yhFvkpc7HQNjgBIlmnk5nIt3Lmqt3e5exmEaNpxtXR90K1Sxh13i8IVl0OIc8y M3Y6/Zodpsr7Pm+YDAFPxsS49ID+HB96VCuBj0hp9RCuvRWJnnO2IyIz5/mw9vkM9GgX 5bAw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=knrbzBuDehhtfPEvKniXQQfSPEDHGGizKqNa8Zubbfg=; b=J0oV4oQFh88r0iUbNn8LI0u+8AkWswsGINcFY2ri+84B8HZXldVB2XVoZNrhY6R3RO dbkqYgKI6iDrfRlNafeyTf/kao6VdhNt7kmDXSR1H2F6/g1CzmbeqKFBFe4Bi0fC3ybC AGvGF/yhW61DKqaznRsUsAIVbQhDcMsh5XrvXhalFV802niXpptRtDOz7556s9fA3q7T XNVKXzPZTNiCyFikzFlmNj6UtGqokonEUv5565/bU/l9dDSYwqgHS5GT80F991osXZCP yyAcu+cM8+XoQReb2PkRUvWduRk4wJzercUq+sWSCI6aiw1bOxam66I77najEuHKXLZX c+zQ== X-Gm-Message-State: APjAAAWI4yy3gvB80se1Jnu/idcq+hvzPloF64Y9jDu2z5shdvD+8g94 u1UeA8QbMCgmdqs646FK5lUGbQ== X-Received: by 2002:ac2:51a3:: with SMTP id f3mr10276923lfk.125.1559600962748; Mon, 03 Jun 2019 15:29:22 -0700 (PDT) Received: from dev.nikanor.nu (78-72-133-4-no161.tbcn.telia.com. [78.72.133.4]) by smtp.gmail.com with ESMTPSA id x20sm2175874ljj.14.2019.06.03.15.29.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 15:29:22 -0700 (PDT) From: =?UTF-8?q?Simon=20Sandstr=C3=B6m?= To: gregkh@linuxfoundation.org Cc: simon@nikanor.nu, jeremy@azazel.net, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] staging: kpc2000: remove unnecessary oom message in core.c Date: Tue, 4 Jun 2019 00:29:12 +0200 Message-Id: <20190603222916.20698-4-simon@nikanor.nu> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190603222916.20698-1-simon@nikanor.nu> References: <20190603222916.20698-1-simon@nikanor.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes checkpatch.pl warning "Possible unnecessary 'out of memory' message". Signed-off-by: Simon Sandström --- drivers/staging/kpc2000/kpc2000/core.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/kpc2000/kpc2000/core.c b/drivers/staging/kpc2000/kpc2000/core.c index dc6940e6c320..a70665a202c3 100644 --- a/drivers/staging/kpc2000/kpc2000/core.c +++ b/drivers/staging/kpc2000/kpc2000/core.c @@ -319,11 +319,8 @@ static int kp2000_pcie_probe(struct pci_dev *pdev, * Step 1: Allocate a struct for the pcard */ pcard = kzalloc(sizeof(struct kp2000_device), GFP_KERNEL); - if (!pcard) { - dev_err(&pdev->dev, - "probe: failed to allocate private card data\n"); + if (!pcard) return -ENOMEM; - } dev_dbg(&pdev->dev, "probe: allocated struct kp2000_device @ %p\n", pcard); -- 2.20.1