From patchwork Mon Jun 12 16:27:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 9782069 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 648FF60352 for ; Mon, 12 Jun 2017 16:30:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5533C28178 for ; Mon, 12 Jun 2017 16:30:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4597A27FAE; Mon, 12 Jun 2017 16:30:02 +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=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 E975027FAE for ; Mon, 12 Jun 2017 16:30:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754867AbdFLQ35 (ORCPT ); Mon, 12 Jun 2017 12:29:57 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:33857 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754712AbdFLQ3u (ORCPT ); Mon, 12 Jun 2017 12:29:50 -0400 Received: by mail-wr0-f171.google.com with SMTP id g76so101840423wrd.1 for ; Mon, 12 Jun 2017 09:29:49 -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=V9zpWoVJdtY4KVQzOpPdaQZJgDDwX/nMcsVy7YcwH+Ez72y6qbS1GDdL0QUUpiWx1z 7lhdCAluMsVanvsa83vqvOGpkf28ykqI9l7WR+egEMLE4xKArBH8/wb7oRsbiRz3qvXu DFojTusvnjCwLmWpvYbiZAOUn64+ShwY1uEIc= 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=NWvQg/Y0TjEMuJiYiOsNKQk7+h8A1kol0B8FY7D27B1LwlGzxF06D9etXesEQ6dWyp NvrPOFRegQ3Ewimu/DlOGXlgYTV0J7IvwtG+BdeWS5mije9BEv5Ba2tRmWmlPo87MfAr WEuolDHnW0VMGHJst2dQZ/cy6p1W25h7py6Eb0X98kLryuM/kuFwBdSSi1unxR8Ar0J4 tKkRD6P7aNa7fotBxeDo/eycpLUhNEupkNJlPVasEqg91/2i+qzTyJEsxqwD54u1HhN4 lJukTLS4jxl1WP+aeulRx0JpnF6MWr9bT2wxN89BM+3J7ozOBffNbtbXnfHiIutAM1J1 3FYw== X-Gm-Message-State: AKS2vOxtTIdcYZevKd0d1DI2H8kAf8i9zy3wQnhcC2h45t+UEVu0tSJ1 jfRo3yHoe5eP8ip4 X-Received: by 10.28.60.137 with SMTP id j131mr8685323wma.19.1497284986655; Mon, 12 Jun 2017 09:29:46 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 49sm14493531wrz.8.2017.06.12.09.29.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jun 2017 09:29:46 -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 v10 10/18] media: venus: hfi: fix mutex unlock Date: Mon, 12 Jun 2017 19:27:47 +0300 Message-Id: <1497284875-19999-11-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497284875-19999-1-git-send-email-stanimir.varbanov@linaro.org> References: <1497284875-19999-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) {