From patchwork Thu Jun 15 16:31:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 9789213 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 E46A860384 for ; Thu, 15 Jun 2017 16:37:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5A21286BD for ; Thu, 15 Jun 2017 16:37:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9BBC286C0; Thu, 15 Jun 2017 16:37:47 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI 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 8ED1E286BD for ; Thu, 15 Jun 2017 16:37:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751667AbdFOQhP (ORCPT ); Thu, 15 Jun 2017 12:37:15 -0400 Received: from mail-wr0-f174.google.com ([209.85.128.174]:34079 "EHLO mail-wr0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752506AbdFOQdM (ORCPT ); Thu, 15 Jun 2017 12:33:12 -0400 Received: by mail-wr0-f174.google.com with SMTP id 77so25376920wrb.1 for ; Thu, 15 Jun 2017 09:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cxypuHuowLRmyRmOB/X98Wse1XczZCK9O7RkdojKQbc=; b=j+EixUfwqKxQ5e4uTbHs8vcwQQDUOLjv8y4KscknCll0+96Zu7jI7dfl3eyRCuYmDg 2IZvH+cSpLB68ciwio6fssLvDRyIkUDlS5xPaA3F4d+BygWEnUnSGCmHUj5U5jx0aBpf h6AsGJzblApOr6uttP9o7pqHTI+mq0ugLelE4= 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=cxypuHuowLRmyRmOB/X98Wse1XczZCK9O7RkdojKQbc=; b=Rmu/oIEvdQVaBxZatVWIC4I/8PeWHiVvrgSzaZtJOOlko9VQxiFC5CZUWmh6HpBMIe Z77k0bbn+K0jL5/VK1WtTGAWBdiqS8xevRVqHBq875j/9zjiehVAl7jmosYwQDdw6yyW K5uNwLKooElaOtA3Z9mMxlpBjCe+VmXKKErcEFAC0xa0DWbKfrtZwTnSRoc5mh7eJuc9 rQG4bZnX3FGPaPbWmEUmqgNIdrlgf38C8a+DtcVf8m4wpSb3FOiGNHgzTULEfm9/jVj4 Rk3u2LzZHmXIjb6hUE9qjTH1J0xbIEWRgZmGzBPG9hqt9jLQOyA0RGcQ8fVfS9KVx3nE mJBQ== X-Gm-Message-State: AKS2vOzFUlcE0FuMisXFmir/T19b+IwH1FjLZQzRYVejbsg1HMU49nHC v4NSghdmFYIy3Xj1 X-Received: by 10.223.128.65 with SMTP id 59mr4650308wrk.0.1497544385713; Thu, 15 Jun 2017 09:33:05 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id m73sm541890wmi.25.2017.06.15.09.33.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Jun 2017 09:33:05 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stanimir Varbanov Subject: [PATCH v11 10/19] media: venus: hfi: fix mutex unlock Date: Thu, 15 Jun 2017 19:31:51 +0300 Message-Id: <1497544320-2269-11-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497544320-2269-1-git-send-email-stanimir.varbanov@linaro.org> References: <1497544320-2269-1-git-send-email-stanimir.varbanov@linaro.org> 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 fixed a warning when build driver with gcc7: drivers/media/platform/qcom/venus/hfi.c:171 hfi_core_ping() warn: inconsistent returns 'mutex:&core->lock'. Locked on: line 159 Unlocked on: line 171 Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/hfi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/qcom/venus/hfi.c b/drivers/media/platform/qcom/venus/hfi.c index 20c9205fdbb4..c09490876516 100644 --- a/drivers/media/platform/qcom/venus/hfi.c +++ b/drivers/media/platform/qcom/venus/hfi.c @@ -156,7 +156,7 @@ int hfi_core_ping(struct venus_core *core) ret = core->ops->core_ping(core, 0xbeef); if (ret) - return ret; + goto unlock; ret = wait_for_completion_timeout(&core->done, TIMEOUT); if (!ret) {