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: 105677 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp890271qgd; Thu, 15 Jun 2017 09:37:49 -0700 (PDT) X-Received: by 10.84.129.99 with SMTP id 90mr7177534plb.62.1497544669258; Thu, 15 Jun 2017 09:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497544669; cv=none; d=google.com; s=arc-20160816; b=UWGIdBouf8hZl1XY0RvVl/r+8ER3tEXQ3eqOwD4CRKX/Y70HUR6olvB7DuOsUfhr4o bDwHwri00qPDwjjirjHDc1umYabhPNQdHnQ222fp65v2dy7wtYC05CvDMPJHKsE5BB8r h30/hPoVdIY5CauupG4TYG9qr2AMHgbeyft/LVGV4tn1FNt4imG+k3XkIIOjOLdpC+Cm Xlf6mOK0TxEtRYOHyaz+TpnuWhvh7/B65bvVYcuC6zjib28GjE5C0J/+YWsDiM1sdT/q ARGdaMl3MGQEBlztkW8jKqHOgG8DA4woQgkseF3WhYkLNYLrhFRWa1jgrfNpsmP7YPld DYSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=cxypuHuowLRmyRmOB/X98Wse1XczZCK9O7RkdojKQbc=; b=FDHWBpUzcPZeRij90JOucMNdUuO5H7W7v62dH56cth+BfJ0yPXVxopeKSk4pZYc3tG v/xlfU/zqvDsVj49bLFmwHZ3CzxpjnP+WNGeOJgInz1Y+RxvuPyvN5v6su9HjPEFwHJA udBpViqlEGyyosskmy5g0HxEMbbfHlh56ZUoItHBQfGliz3y6anhi5PquMQsoTIA57EG qz/GZtfoFKaRTwYUiD4OJOzRGRejQNKTzd1HCfu6NkUoB1xNSr3uZj+jRuTIFr8BkEKq Cnm+nRv+nsu02/e99ki3gqLpWOdPSUKwmUeGm0hilvxrEvTkzOfxKWsLYadnF+BE7NAv tnNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=j+EixUfw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si392313pli.265.2017.06.15.09.37.48; Thu, 15 Jun 2017 09:37:49 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.b=j+EixUfw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752580AbdFOQhQ (ORCPT + 25 others); Thu, 15 Jun 2017 12:37:16 -0400 Received: from mail-wr0-f174.google.com ([209.85.128.174]:35878 "EHLO mail-wr0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbdFOQdM (ORCPT ); Thu, 15 Jun 2017 12:33:12 -0400 Received: by mail-wr0-f174.google.com with SMTP id 36so25247357wry.3 for ; Thu, 15 Jun 2017 09:33:11 -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=Ma9Xb730RsI8GPZSUU6GVVvPTQAy9U8ErQWaFuuWARhADE1QHnPHyL8nTyQbEGBQI+ cE9rZj+0NXUy3PmemChfioi1FLspTj+AepRF0+3SpAmn6Besto5nwkCGJyp+FX03ZYQB VqQoue9AtCrqCqkBUHt6EBgwLCHMafCPxNcohFwX1KTIWf/iwjx/I0alT2IjgBUv9ZK6 6vJHZHIxmFCWace7xLOE1PnRqYtVjdVb4nUgxi8Ik1EKKDgP/JmN3LlVkE3g2fWGfg9c YccbMGsP6M2rq1REm5idpdmvixfOt694hgvWFtg1ljEsvAhWO3ESb5pWItTqEql215Kl XmUg== X-Gm-Message-State: AKS2vOxv3WFg26XMFnzjHi0s1ho1spF6eGed2CbIILyrBhXjdn1esnyn MpIKCDx0j5sAkVEG 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.7.4 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) {