Received: by 10.223.185.116 with SMTP id b49csp2018541wrg; Mon, 12 Feb 2018 02:55:29 -0800 (PST) X-Google-Smtp-Source: AH8x226Ix3OToEduTfgNHvlU2rgsarJui/bdfrXSxg5HZ4pVdhb5nIa2MvezB1zjNXWXrQBQsGYc X-Received: by 10.99.96.200 with SMTP id u191mr9098169pgb.252.1518432929250; Mon, 12 Feb 2018 02:55:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518432929; cv=none; d=google.com; s=arc-20160816; b=FzrAWVIXIK9TnvBWJSTp7l63iPowcfL3c6Rv5y7nRWlIQAzVJVufiVT+wwiHFkHJ0K P6tVbCM8cv8NInwUFUK0b/S3WIIWyif9wKJVXAf2MGivxGXZz8eysIGuFtHVc1/qqDWj TWdLC9V6ZL7oUMy7M/3lrDTJXRD+msQOSjZlqViG15Mxe+dis//lhtOSQsB/x9NV3PTf 9iAJl89QwinxMLoWxS4qOGPck1UgdrMC91RXHTkr0hCMvoLJY1Q0/6dYadV5CiNEXgVQ pIbjOoINr34RirKthMiFzCutlJyGlFSdw6rKpi2hEIc9wFpE/En3IjNskScOc4Yl5vuQ aMrA== 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=d7B9uMuvgYAIAkl9WluA2L/m7tvFflMZtdyBUYMNzls=; b=Afel6xyWXEzBS8QPLZ7E9iJpAo8A47YSp2a0UfjeQbeShI6Sr52dWAscEyHBXqq7zj mO69P6wRcFWPgEtO4r3ZfeWLaSbDLQTYWSm2vuRH62ijwlZpdfbro6F2wWynVElMsy2L LuMZ0tuGXdBwBdw91JCTMoCqCmc2K9y4EU4h6aGLVNYNMTrfqByTs9jpmVCTE1CqsFWn Snz3gqB+1rDkMN9dlx3FC0LdJbGVpBH4i+5iNpO1c/3uRoJPkxAf8BfqJwinMafBKASa tbrF6mGn7BdOF+ENYhWqFDOLv+T2aXc2Io1bdINRhFj2ya+lM4EzpsOoiL/Ubcg8KSkF xH3w== 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 b31-v6si5679137plb.24.2018.02.12.02.55.15; Mon, 12 Feb 2018 02:55:29 -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 S933946AbeBLKyQ (ORCPT + 99 others); Mon, 12 Feb 2018 05:54:16 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:5199 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754076AbeBLKwh (ORCPT ); Mon, 12 Feb 2018 05:52:37 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 53BBAEBD651E0; Mon, 12 Feb 2018 18:52:24 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.361.1; Mon, 12 Feb 2018 18:52:17 +0800 From: Yisheng Xie To: , , CC: , , Yisheng Xie Subject: [PATCH v2 7/9] staging: android: ion: Return void instead of int Date: Mon, 12 Feb 2018 18:43:12 +0800 Message-ID: <1518432194-41536-8-git-send-email-xieyisheng1@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1518432194-41536-1-git-send-email-xieyisheng1@huawei.com> References: <1518432194-41536-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. Acked-by: Laura Abbott 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