From patchwork Tue Apr 18 18:27:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9686009 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 12C71601C2 for ; Tue, 18 Apr 2017 18:28:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08A8528375 for ; Tue, 18 Apr 2017 18:28:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F0ECB2839C; Tue, 18 Apr 2017 18:28:17 +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.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable 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 AB6CA28375 for ; Tue, 18 Apr 2017 18:28:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932733AbdDRS2O (ORCPT ); Tue, 18 Apr 2017 14:28:14 -0400 Received: from mail-qk0-f170.google.com ([209.85.220.170]:32819 "EHLO mail-qk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932723AbdDRS2J (ORCPT ); Tue, 18 Apr 2017 14:28:09 -0400 Received: by mail-qk0-f170.google.com with SMTP id h67so1247488qke.0 for ; Tue, 18 Apr 2017 11:27:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bhm1p9Q8Nv3sjl2lJgkhex2YtG976eaqOVl9ZbE/KF8=; b=K4lVHHhx6iEx8i3CqLpMEMogGaCT1FdNzRvHQWSdnX6mqiK4+Arr/BU4ISOADIiFba b2Rxhi5FV4UERtkQETn3ztJrUgC+bW5o3uB3BOCk+BhmiTWeqTmWaqKPDLWxI/m+BBZv WrHIEw5UIpcnl3/zH5J/NAcYDmLu+ugrsyR0OrIiVcqnVVXQ8IiUsVsjK3FC03QSnFsU rXoSgKCIE9bc8MTw1fdesrfCBmb2lcycnLhaToWte6g0unDSfU8so3AS78dAPnFPUmgQ BRjVIpMjWJuhmRueFnmfNqQrPF1UIOvk/2D+s+y0WpNW1IotZ4WIcKIdUkCsC2rgFGbI BTgg== X-Gm-Message-State: AN3rC/7dnYNUgPn0Vq4kkBzhahmPnSwDKv16Q/Yk0YT1Oc8iFgIKMurT 2y22+ufW6HRgspC7 X-Received: by 10.233.232.136 with SMTP id a130mr13655933qkg.238.1492540078473; Tue, 18 Apr 2017 11:27:58 -0700 (PDT) Received: from labbott-redhat-machine.redhat.com ([2601:602:9802:a8dc::159c]) by smtp.gmail.com with ESMTPSA id q66sm10142381qkd.69.2017.04.18.11.27.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Apr 2017 11:27:57 -0700 (PDT) From: Laura Abbott To: Sumit Semwal , Riley Andrews , arve@android.com, Greg Kroah-Hartman Cc: Laura Abbott , romlem@google.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linaro-mm-sig@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, Brian Starkey , Daniel Vetter , Mark Brown , Benjamin Gaignard , linux-mm@kvack.org, Laurent Pinchart Subject: [PATCHv4 11/12] staging: android: ion: Set query return value Date: Tue, 18 Apr 2017 11:27:13 -0700 Message-Id: <1492540034-5466-12-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1492540034-5466-1-git-send-email-labbott@redhat.com> References: <1492540034-5466-1-git-send-email-labbott@redhat.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This never got set in the ioctl. Properly set a return value of 0 on success. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/ion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 9eeb06f..d6fd350 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -498,6 +498,7 @@ int ion_query_heaps(struct ion_heap_query *query) } query->cnt = cnt; + ret = 0; out: up_read(&dev->lock); return ret;