From patchwork Sat Mar 18 00:54:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 9631867 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 705F4602D7 for ; Sat, 18 Mar 2017 01:04:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6395A28506 for ; Sat, 18 Mar 2017 01:04:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 58337284EE; Sat, 18 Mar 2017 01:04:24 +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=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 043D228506 for ; Sat, 18 Mar 2017 01:04:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751461AbdCRBEG (ORCPT ); Fri, 17 Mar 2017 21:04:06 -0400 Received: from mail-qk0-f174.google.com ([209.85.220.174]:36402 "EHLO mail-qk0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751210AbdCRBEF (ORCPT ); Fri, 17 Mar 2017 21:04:05 -0400 Received: by mail-qk0-f174.google.com with SMTP id 1so77337096qkl.3 for ; Fri, 17 Mar 2017 18:02:29 -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=O8bBD1uQapHV1xz+g6Ra/2JGsrEfCphTIFz1Svp+1g8=; b=hplAkNRpgWk6HTbH39nLCQ9/Usn8XIRt+pOIh+pwZ6Urt8ItbcGuHo4U3TTE4Y2paK RD3Aee49FxygLgTef84iAgXByLjYq+4xwG2Bop1qrICckxKebj1x8PwAdjQ7Z+Kd/4Fc 8OKNauNvfoXhKC/jPIh2DxIhdBdc+M9W18LsDqIkTgE6/5qScNc0HR2x9XQWUl5yshHH sjpkOKQs11Ds3GShMxyijsgOyjziSdY41lLxjNpR9/sx7+IJPuwTTmNSxzZT/UpaDkOR iFUNro7P/IfUb3qVgTjbgWFe2vc6fWWhxkMNUt5439LBH0yhB6JK2jwz69mp8xf4xvTQ vKwg== X-Gm-Message-State: AFeK/H2bxyF0N1xyxu2/604EWAO9VjU1c7N4H9RI4O3mhy5c8Wb/EOvzM4jBQ6exhBQsm9Xw X-Received: by 10.55.145.7 with SMTP id t7mr14889112qkd.2.1489798570019; Fri, 17 Mar 2017 17:56:10 -0700 (PDT) Received: from labbott-redhat-machine.redhat.com ([2601:602:9802:a8dc:1722:8a6b:a66c:79eb]) by smtp.gmail.com with ESMTPSA id e55sm7118568qte.52.2017.03.17.17.56.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Mar 2017 17:56:08 -0700 (PDT) From: Laura Abbott To: Sumit Semwal , Riley Andrews , arve@android.com Cc: Laura Abbott , romlem@google.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Greg Kroah-Hartman , 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: [RFC PATCHv2 21/21] staging: android: ion: Set query return value Date: Fri, 17 Mar 2017 17:54:53 -0700 Message-Id: <1489798493-16600-22-git-send-email-labbott@redhat.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489798493-16600-1-git-send-email-labbott@redhat.com> References: <1489798493-16600-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 64c652b..8bd90ce 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;