Received: by 10.223.185.116 with SMTP id b49csp1605442wrg; Sat, 24 Feb 2018 00:00:14 -0800 (PST) X-Google-Smtp-Source: AH8x226fnAh3jFX/ap5BvPLPODpTqZEmwtp6V7oSb0QK4vRcw/GJWsGYwO6MAztBabAi6iN0DbiV X-Received: by 2002:a17:902:2006:: with SMTP id n6-v6mr4223723pla.149.1519459214226; Sat, 24 Feb 2018 00:00:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519459214; cv=none; d=google.com; s=arc-20160816; b=NHTJx2BAQDTUqzajU6X5sqGHIetf1Ad5Ch2ufRdbIwawOQAWC+R3qX0FbsN/NBlgSn 5q+fJMkRiB3DH6xypSNByVR/X4OAH2eLeT15KJa9aCy79gFz1cQfwJOIQ9downCBoslR QReOfgy78nBMiLd3cIkPT+0x+hNMwOFfS4dsAkVs/KMUbB7zMrSBDayz8kaUSa8WOt9e 3Gh/i9XcEm4VNngugvmDKWHZKrmBjJp6FXsV2T4m0CN014JyLnKLajSkgfgww+ndj+VS EX7qRIsQWRu8sab41pJ91XeI9o6w07YSNdnIma41cC+GKLfNBRjXekN8aNJ3ESqxWJel FkDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=6KZ8B1/CRJUV9g1Rl5xx+AQHy9DRMBerB/93jAl/QiY=; b=CR7PrfP4b3YLZZXCZB7gOcMuhVR6rX7fmyc8lUQHZs4K3rYr6mfqKjYNuOPdu7w7sL oQukT5t9aNCaM4t7CXvY/Gwy6uM5Ty/IyXGPWfQPjuUs42u4jRHZNlYWiL4UUuiAYLGC DR2pMcuJb1t/CfEJTfn2oMjcIZnELdrgsXQQKj/KslmkbZenOBHixPW5fLqaOsOq/IEJ z0bexBvbNPf07CZEOEpz0fURbNBynC9l+RP9UZqnoyz9yBfA3vwpyneATZoPyycFtPx8 kBkxIK2jLr3s4cKKTeX82qN2Fr18d+5ENBFKv2NmSeuKqIv/4Fpqc+RIXKxZ6K6219vE 7peQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5si2613628pgo.780.2018.02.23.23.59.59; Sat, 24 Feb 2018 00:00:14 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751465AbeBXH7T (ORCPT + 99 others); Sat, 24 Feb 2018 02:59:19 -0500 Received: from mout.perfora.net ([74.208.4.197]:40197 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751429AbeBXH7S (ORCPT ); Sat, 24 Feb 2018 02:59:18 -0500 Received: from kahja.local ([73.170.116.139]) by mrelay.perfora.net (mreueus001 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MTQGn-1fHN831WnH-00SLBn; Sat, 24 Feb 2018 08:59:12 +0100 From: Quytelda Kahja To: gregkh@linuxfoundation.org, christian.gromm@microchip.com Cc: Michael.Fabry@microchip.com, chris@engineersdelight.de, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Quytelda Kahja Subject: [PATCH 3/4] staging: most: Remove unnecessary OOM messages. Date: Fri, 23 Feb 2018 23:58:34 -0800 Message-Id: <20180224075835.11618-3-quytelda@tamalin.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180224075835.11618-1-quytelda@tamalin.org> References: <20180224075835.11618-1-quytelda@tamalin.org> X-Provags-ID: V03:K0:wUNY6SdarZ55oCTRGXR4WH5SD8hr3jLxTD2rpJ4LoQCEGJGAcqK sWzHto0Uv6vEijuMMLaMCmVbF8B7Dzd88Las2n5t9h9h5igM/IL7DHa1yCTJkyYxi6S3T67 suxh1Ksn8GGaihgGY2auaDsoxBN+IC+xK9G9SQhLLCWHLcP1PIqpoKjViXRBZCDxqqPLCX7 PCnAFP23X4YsvBj4WBPAw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Z7HDrraEC/Y=:yB2ShG64hmatvU4DXP2Vd4 3hamPzpiWDHvqTepNiAwpbMOVxo/QboJcC41yaqaG2l6bscJsg5aTq1T9EDXSe7fnptckooRf Z55KdzvrFuev2KnZqtMjqaqcBkhtakhqw3+0Atp4UgjY7KbyRwYuAdpO6JGSyQREu+UgbtsX3 v2d7IhFGpwsOTqPs2UEeGgwgMEOYRBf9uk+BGd7V6LbbgwESsgGBl0oVP0vC6DVQ3G8qpliBE dacKTvWDbGY075bbdsAcGZnXtSJk89HayqjXK7rdlpd1d+qm8IizUDeXL/kRECv6wLh01VVdM pQqUjWuEEKGNDZlLNwEHewqmgfRiQrPh9XKJwnx+HrutEk0GKCHrLBIaOuwi5dXMeHwCjSupn QW2cvTpMtzkZUBQvwdYDZ454++YsI/68oiVS9pn8VzufFjEeGy1saoGLA8uudbO6U+NYdTU+d q+zlsJopt7KsbkHoH6h+TCUYsQ1upidOMiFb+YONSus6NLiURDAigWdVoa29FATmxxSbq28ZV cWFqCnNH8NyHT9WlqtPWUH9DQTj3gw0LEk+Zr00jSMxWcchi50zW++U5lknCqRl8kqqw39X7S NSvcpIO4KP/k17LLTOsIlsVbca2ySzNvBHOQEYP5VEHCBi2ZnPDVnj/dK2QVsyvVlVFI918h1 6w4LzR0fTs+WPq+sXj45JNRROEa4uoRxYVW8bnXlYNxau98IZx0lbzl5B2YOPWPVrPRIMXiW5 gyPELCw0yD1tlRihlq612xVCLAvxe2GYmOu3Nw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It isn't necessary for the driver to log out-of-memory errors, so these have been removed and the functions simply return -ENOMEM. Signed-off-by: Quytelda Kahja --- drivers/staging/most/core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c index 3f65390a6e17..b8792d70db8b 100644 --- a/drivers/staging/most/core.c +++ b/drivers/staging/most/core.c @@ -1210,7 +1210,6 @@ int most_start_channel(struct most_interface *iface, int id, num_buffer = arm_mbo_chain(c, c->cfg.direction, most_write_completion); if (unlikely(!num_buffer)) { - pr_info("failed to allocate memory\n"); ret = -ENOMEM; goto error; } @@ -1389,7 +1388,6 @@ int most_register_interface(struct most_interface *iface) iface->p = kzalloc(sizeof(*iface->p), GFP_KERNEL); if (!iface->p) { - pr_info("Failed to allocate interface instance\n"); ida_simple_remove(&mdev_id, id); return -ENOMEM; } -- 2.16.2