From patchwork Tue Sep 13 14:08:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolai Kondrashov X-Patchwork-Id: 9329203 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AC9F760231 for ; Tue, 13 Sep 2016 14:09:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F43B294EA for ; Tue, 13 Sep 2016 14:09:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 94241294F4; Tue, 13 Sep 2016 14:09:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 75FCA294EA for ; Tue, 13 Sep 2016 14:09:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755831AbcIMOJL (ORCPT ); Tue, 13 Sep 2016 10:09:11 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33751 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755296AbcIMOJK (ORCPT ); Tue, 13 Sep 2016 10:09:10 -0400 Received: by mail-wm0-f68.google.com with SMTP id b187so18455646wme.0 for ; Tue, 13 Sep 2016 07:09:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LoVVkDrL6o3dQ2y/gka61PaKt160HU8/iDZ5ouMg8kI=; b=UZSgOUWO+79Qwj+9OOo0KOSS6Bj7SMrN6e4OmSZG01gbkzHLRN2onobSz3M3BH4y99 qP2Y/oJRCymcCfO0p0jSrlh/WiwGiFpb3Qc9Jd/oCCQX74EFoqFnpDsIbBN0g9zvHBjh 0gMGQ/gkw3RdCFnrNKfec+jrv/oQ7dhnixVlIwrTBnv5xLp1qmdNk2NbZx/u3xh9dQqo GmKr7IB5gHhAE/daEtVqZsmdhheIjRScpHGC1EM6ObpRDNgtYhAXxkdabLVgkPfb/p8i 5xAd8jibiShQ0e4idkrK/OFGsfqLce9q7iZ1VHlzec11da26g57aPl3J5e4ZP4e/Cm0t gMKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LoVVkDrL6o3dQ2y/gka61PaKt160HU8/iDZ5ouMg8kI=; b=exehNKApmykhkWaQKhemgZ8MAA/wlD3bueVbRYBSdFH0+uLmOabUCIwHJzWP87pB3O pqasfLNaZu3kAt1WNw+PHMW52fg6Kwqz1dtRZ3s/19N+iDq/BKm/tsDINHoSjIbsFufG cHcV4nK3gMVWIaI1ESrwdfXbxrTnj0pp+pel6fTmfEMZMM7FqyjR/qkq+Mi/aVUavQJR yIwyr8tyM2n1QayL1PL0gJ5aAJEQHEu8dW5MVzVzjYcB6Gp8T31hFUF6/OWCCOlAPUzR DCtr6/K1Zxqa0UD7qLM0BhaBzXQ5XBXzxf/dhceqsXsfZVzkfHQ3zgyYNRDrg0V91roz yNLw== X-Gm-Message-State: AE9vXwPeVtM6rLOEFCGk3MX/NFUi6xPY1qna6864AjkcHPQ6CGg/ZFskrvo0taHAjh/UdQ== X-Received: by 10.194.15.133 with SMTP id x5mr11967507wjc.84.1473775748902; Tue, 13 Sep 2016 07:09:08 -0700 (PDT) Received: from gimli.redhat.com (a91-152-106-187.elisa-laajakaista.fi. [91.152.106.187]) by smtp.googlemail.com with ESMTPSA id j1sm23193149wju.9.2016.09.13.07.09.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Sep 2016 07:09:08 -0700 (PDT) From: Nikolai Kondrashov To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org, Nikolai Kondrashov Subject: [PATCH 4/9] HID: uclogic: Remove allocation failure messages Date: Tue, 13 Sep 2016 17:08:38 +0300 Message-Id: <20160913140843.25567-5-spbnick@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160913140843.25567-1-spbnick@gmail.com> References: <20160913140843.25567-1-spbnick@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove unnecessary allocation failure messages from hid-uclogic.c, following the checkpatch.pl recommendations. Signed-off-by: Nikolai Kondrashov --- drivers/hid/hid-uclogic.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/hid/hid-uclogic.c b/drivers/hid/hid-uclogic.c index 6a59f6a..790528e 100644 --- a/drivers/hid/hid-uclogic.c +++ b/drivers/hid/hid-uclogic.c @@ -777,7 +777,6 @@ static int uclogic_tablet_enable(struct hid_device *hdev) len = UCLOGIC_PRM_NUM * sizeof(*buf); buf = kmalloc(len, GFP_KERNEL); if (buf == NULL) { - hid_err(hdev, "failed to allocate parameter buffer\n"); rc = -ENOMEM; goto cleanup; } @@ -821,7 +820,6 @@ static int uclogic_tablet_enable(struct hid_device *hdev) sizeof(uclogic_tablet_rdesc_template), GFP_KERNEL); if (drvdata->rdesc == NULL) { - hid_err(hdev, "failed to allocate fixed rdesc\n"); rc = -ENOMEM; goto cleanup; }