Received: by 10.223.185.116 with SMTP id b49csp3972385wrg; Tue, 13 Feb 2018 10:35:25 -0800 (PST) X-Google-Smtp-Source: AH8x225Hzf5u59RIcxC8g6Ilrts4PpzKTsK7umOOFOftfSkqykGGM3bRbc12K3hhXQMxSmLUeCoW X-Received: by 10.99.126.71 with SMTP id o7mr1724707pgn.446.1518546924935; Tue, 13 Feb 2018 10:35:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518546924; cv=none; d=google.com; s=arc-20160816; b=s2P/OMgnm7PrbGAcM9SnzWF9BKry0k39xiQvqWmZVbNQB9j+3JDnR5ahR4jpJfF0TE bRWQahoRhqF6AEbSQooS+/eQxleiiVjF3R78nbefxTPeeA9t1WJ5n8dSyzR8XfZczvgL L0y/GGDcK0AJU7zLzf6Kv//Sk/Vwj6xblUtYfpjcSB1ZCtF4QGqyVQYb7LTtZfil/NyF H/cQECfVNWyoc4DplhxkI3r4csgMXGoJXsSsC4AuInfnp3NQUayIsDpc7y1yHekme0P1 MejDPhB+wo9n9VuGsxVgQzEggmDprgWVBPjjfQQj+DWUtzaZ3FV8mzhfqChzxBhaKs1V RjFg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=FESYpEisD5awkrf/1UFwDCKelzS/c4Sk28iXV6Hn/vg=; b=o1jmq5KREdHg1ONslKHCiwU2Rxrz7kD9Dfa/waPP5z/MoD1XYTJpW4PIrYkDxbSA7J 6/wSrt5LEivBRMmB4Au2jYZAuGEbscvC2CJ/ueMeIMHM+Xh1PYdlBP6LmAzobe0+oqnn Roke174WM4z+UV7BEu8Tram92Rq/Z3s5Hc1eFQrYVkeGZKjhp6TJx7DJiuWsLr3FrUdM Y/u3Atd8sPmHLfRtmkUp+K2y6haS4odNPP/sJEtz7yVaysHVy54QTAcmEhkzkut52gxB 0prsWBb+X7L5wxkPKI+r4+f+Snge7YDD+9/j4G9D5nT7W1YiKiKJjI6f9QNMSH+1nXDU dw7A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z127si1442174pgb.74.2018.02.13.10.35.10; Tue, 13 Feb 2018 10:35:24 -0800 (PST) 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; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965498AbeBMSeZ (ORCPT + 99 others); Tue, 13 Feb 2018 13:34:25 -0500 Received: from mout.web.de ([212.227.17.11]:38127 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965421AbeBMSeY (ORCPT ); Tue, 13 Feb 2018 13:34:24 -0500 Received: from [192.168.1.2] ([78.49.42.52]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MfHk6-1f9OHS05He-00OpZn; Tue, 13 Feb 2018 19:34:00 +0100 Subject: [PATCH 1/2] firewire: nosy: Delete an error message for a failed memory allocation in add_card() From: SF Markus Elfring To: linux1394-devel@lists.sourceforge.net, Stefan Richter Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <0b5d64ea-8305-de22-7fa7-e878045104ec@users.sourceforge.net> Date: Tue, 13 Feb 2018 19:33:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:rnHOFi+hkDIdjOYUEyotVHMwhZdw4lBKE7+jOCKsQIkPoIL4qSm fZHieg9Tcazo4F688TeiAc5i8VYmuEw1jFKb9/s27pPfZNvq0bSTCExuTlodSizf84Y6FaV RoWnF/At/3BftfIsuwxcBmAVjnpLQWtEeXvIczRZZx9e/s1WZIl2hcYOKQ/0qGbnV9y4KW7 d4hMmoDnwILDR6GEoJ0AQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:ameg6prXNio=:qcd9pGxiTqdchW9jCo4aBy 3Wkbb77D1PiKaP6oTL4hd8VvEbX1SMzYBInhFCGFf9khhjTnnXQOwLvTeHnYeQQb/6x4MQVKg YqfelCNGM0/z+qqoJBdjfv5CBG+78XJ2642lHISdwv7JiIWZCpdTwSpItN2pT5YfPrmUZFD9i dRdgxEpfHusMOOBI9RQVzhHhTFg1/loQ6fcxlfdNekG0Sa8exozERX3eslkvWWuhXyHqgzoGQ 5WKJ+vOo6s+rlHm34Z2E1pDwHoig+9h1IXNQTm7ULfiom4OUqWYuN0iLPG8kiWeF25Pqd/aLw 1C1aJSs9XlwOJMzvGsc7+lYYQrf5yax1ThnIwJkiaMyKfD0TqQWg7P9z44HhBHFlB+jdN+1Je 6q4PPBGvpWfhj/fWOOocv6LXD5tUw9JCAfmO1ymIXFhoUw3D02JYyqqh57KY4iAjqsU63IRM6 r85pHrgGvcE0LGqbj8CazyJSCkXzIirkGm79aijGkY8TagHQzUbwChWgcvxjbH46YGvNX/fr9 UL00PgEMtOLT3Yc1N1vckQ6jBrRoAhapdWZMHM0jMKmK5MK/CcOl7er/s8RbLisdgcazxbxPc FuIW/FaZnoR9RmMlIantz03Vgp2f1M7xs2m4JFAsRomkCvQDHKZrDdEBYvH+2Nk96oMcP8FKT bMMvYF3gUUl+RdQaXJ6nEwINYPycslZjYZM9VGff8oLGpJbvVGTPZ0jGmOScRKQOAuDZmcmxa uiQxsnXDA4KpwtwdRKm7aWf+Lmay8GjnG8uNdpsOhyftiePUH5Ca6a+5bh/BtkjepacvYIjII 2UYGqyBP+KqBx7qG5FxvISPswY92CYIv1ZhFv62EkimbBHXW+0= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Tue, 13 Feb 2018 18:33:45 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/firewire/nosy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/firewire/nosy.c b/drivers/firewire/nosy.c index fee2e9e7ea20..6192f0718bf2 100644 --- a/drivers/firewire/nosy.c +++ b/drivers/firewire/nosy.c @@ -553,7 +553,6 @@ add_card(struct pci_dev *dev, const struct pci_device_id *unused) lynx = kzalloc(sizeof *lynx, GFP_KERNEL); if (lynx == NULL) { - dev_err(&dev->dev, "Failed to allocate control structure\n"); ret = -ENOMEM; goto fail_disable; } -- 2.16.1