Received: by 10.223.176.5 with SMTP id f5csp2062089wra; Sun, 4 Feb 2018 19:38:25 -0800 (PST) X-Google-Smtp-Source: AH8x226oG+9sRLUEp+EdPYVOgutk1ma8gGMUIF+IxFO7qHvSz3Nx3B5mhWmfdi99iw7fba+m8/GC X-Received: by 10.98.185.14 with SMTP id z14mr4531394pfe.185.1517801904966; Sun, 04 Feb 2018 19:38:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517801904; cv=none; d=google.com; s=arc-20160816; b=s8/HWtT+o2uglrlAHJi7DRqNDKZ7QZqeVk8f3rSUjZi8m+mfIeyQXCSYD3RJh2LHR0 EnR3GE+RuNiFsLYlrwX4du0E8ctuMQgUz43n9N/wGL4Y2Drw1WLnVxkm/FQLscCKp855 9zW2j9tk3j0Qj+cM38tL67p3L39uWCIW30VTILI20uA66h9oTA9UiHAfOMg4gThioRys YIoSODJTz/1QFYjBsWJcdmda3SqAua9zMZxj/t0b3iiOm51Da13P2FWic+dv0Ye7UUpW cPSz0asNPUyqxObIUZ7vf55nfbQ229lnhJYXUBSNu40fcbZdqxaDjeeu8Gigf8d5RUTP ou9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=EkBQGOSforAncXpGqh4pqWeRrL/LeaUSyTBOgwGnqBo=; b=B5T6LaqYNRd8aWtmiGBZC1IkkPW095ot/3lt3mPG2XbV/rFkzUKhYEO1PqeJ7FkSQk zIEKHc9jWPZ3n2Z79Mryvo1rET3ehtLbY+/R9uXcVzy77QdK11C01OYjFlY4habNNUVG VXmTi5liUhZJHTSNxyPGgPBMQ4tIyRbRDinsKULSirpF5kNCxibWA3IOFxx/EKkhB6EA c1U7Lhut4NC8N4err7OMJsozPBdOW0EEIkdlfZm34rYL+vPzcXr/fLtlhR8OmWra0uB6 +8LTQzApMt6DnKVCoDiyTRZ/VOB/GDJwgkV8/ZEwJaQE1lxmibxa8PACL2QuYhBMCEfv Wq/A== 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 e89-v6si4183349plb.461.2018.02.04.19.38.10; Sun, 04 Feb 2018 19:38: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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752260AbeBEDfu (ORCPT + 99 others); Sun, 4 Feb 2018 22:35:50 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:39816 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752114AbeBEDfq (ORCPT ); Sun, 4 Feb 2018 22:35:46 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id A57D9662D58CF; Mon, 5 Feb 2018 11:35:42 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.361.1; Mon, 5 Feb 2018 11:35:38 +0800 From: Yisheng Xie To: , CC: , , Yisheng Xie Subject: [PATCH 2/2] staging: android: ion: Return void instead of int Date: Mon, 5 Feb 2018 11:26:17 +0800 Message-ID: <1517801177-37021-2-git-send-email-xieyisheng1@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1517801177-37021-1-git-send-email-xieyisheng1@huawei.com> References: <1517801177-37021-1-git-send-email-xieyisheng1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now, nobody care about the return value of ion_page_pool_add, therefore we can just make it return void. Signed-off-by: Yisheng Xie --- drivers/staging/android/ion/ion_page_pool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/android/ion/ion_page_pool.c b/drivers/staging/android/ion/ion_page_pool.c index 150626f..e3a6e32 100644 --- a/drivers/staging/android/ion/ion_page_pool.c +++ b/drivers/staging/android/ion/ion_page_pool.c @@ -26,7 +26,7 @@ static void ion_page_pool_free_pages(struct ion_page_pool *pool, __free_pages(page, pool->order); } -static int ion_page_pool_add(struct ion_page_pool *pool, struct page *page) +static void ion_page_pool_add(struct ion_page_pool *pool, struct page *page) { mutex_lock(&pool->mutex); if (PageHighMem(page)) { @@ -37,7 +37,6 @@ static int ion_page_pool_add(struct ion_page_pool *pool, struct page *page) pool->low_count++; } mutex_unlock(&pool->mutex); - return 0; } static struct page *ion_page_pool_remove(struct ion_page_pool *pool, bool high) -- 1.7.12.4