Message ID | fa299a44b24e787518cc36129c1b272d8cfeb990.1689673395.git.ming.qian@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7B371C001DC for <linux-arm-kernel@archiver.kernel.org>; Wed, 19 Jul 2023 05:53:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ckC4Cu1E+u+HTjxVWrtplPhZhXHxjqgePNaRkOTwCGI=; b=H+7nExQL8TuXMs VYk3jSn8g1IhgF8nCh1eQJwRVNhqOVkqSRa6yrF4hyWzqbfajXESoVV7w6/xVktit9GN5imt/gFA/ Bol+nqRxFVW8XMqwJtYP+MBAaetvMEVvi3CWkAtR2YMjwhZkbg9ThejyGandeALKfJVKTn9KCeEJ/ aaxnRLNWTURdbMGC+Hb4WHgNl34DetaHHEaU83Q7tkltTfgsdHCX7pUTbQ9MYtgmYdMucqdgdBYHl yTRLl4qbmD/wl1uVerc7ug6qkl67DdJGhXp6K+7I8AsE6Uh9H97R7Zl9QVZTbdKwTkeHgy+LY0Os/ udwarxceCsG5g0E/bwrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM081-005Rvp-0w; Wed, 19 Jul 2023 05:53:37 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM07w-005Rss-0V for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Jul 2023 05:53:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Sender:Reply-To:Content-ID:Content-Description; bh=WikWkd9d9vvysIloiy7srXDggPWB1NrwjogQ2EBZejU=; b=EbC1SEelUrssCk4YIwiPuZW0ia UN67KSpXVLrXweQc9RLNeuHEDlI7f/Zrvvdu4nUZKFRp8kiD3NpoH0KIw5ka3Wyjl29vVGqzFtj8p pBBnY9qf9cuplVvkKENc7Z8oEjSXcCu2SpVs/zfp7UtrCn7k9lXyVeSEvx9/97xMbYc8FGtdAJFhi tb+Cuu9Ekk3XxiqoOnviUrx30RLY/r0bi+Dwd8Gff3NiRzUxNZhBQrz3U5i29oS+Nv+IKaxlWN+37 Qc/jVVBJOS8zLdmlY1vcJSXMXpMjkh4HRHK6RL7nC+glXvrZoCJKSts2oOpFuOub+dCCMFI9lt97D HaDJ4I4g==; Received: from mail-ve1eur01on0618.outbound.protection.outlook.com ([2a01:111:f400:fe1f::618] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLhcK-00BOmC-1Z for linux-arm-kernel@lists.infradead.org; Tue, 18 Jul 2023 10:07:42 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GS8pJnPr08Ejm8C0JNYpdY4xbDhuOQNFFXY/nikLpwxKdEOYz69oPVb2RW4QifrcndEzK6Gk4AoT9BZMFIG85Yy7C6GG1Oo80BhUxHpodGrwpJNZGFECMviEftp3TGLRI5rHurihokrqSwvWvGFqdLZHMq2qgAhg2morxWlEyR3HpAT2gmm20/S8SbeMs2mqfxoUIIrcd65+BrubCcIoorL/MLiTg1nL+RxEKcWwPv8GNPiE5guY15v/aqzGgG4QHZmQ24jvbblk9NNOeX/0ny7YflW+qoIRkeFXH4NSZkOEYQAyNSCFlX3ytxZsyUJSHXVXn57NCeIW4yIorCxJ1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WikWkd9d9vvysIloiy7srXDggPWB1NrwjogQ2EBZejU=; b=BLJgKGzi2Ly6GZeXTVbS8+BabvhuenenPl2Ay93XmtXUgSNak5EGAp20y7sCqWfybKTSO2rus1sgKRptGmuldyiGzyb6Doe6gI22QX02Ieca9aFtjWyFBXw4A3wy8q/+mNQ+ocH2yAJqAS8K5c62Fwbn06CmTjbrVS8M/ypStzHKp9rZrY5TpnhXRswy2gti1Axv7gEraGnfWgJeizelmqgyPciqaZoWjoYomKPvQn5sgOR1bUY5T14nY/WXsnw3qO38CJtsb17aA8gtKaXCq951dbclZD+SMA++i924gYUHj/L+17mIoF5JgU4BFD4PRIVpGQR8aJXstEYjzS6AxA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WikWkd9d9vvysIloiy7srXDggPWB1NrwjogQ2EBZejU=; b=EObprGIqqmyGEtEIiwI1yEzypu7zVvEwCadTBqNgHU6PCO/i7Tgf5LqidVQ0+ZUXagHUM60zumfHm1yooYTIsf7BovcflqP+yLEC9GgQA3uYyedKV05CbpL74hm+d+cdlDVsT6iRIVRz/bL4rFYiUR9id57nOGHs2c1W+jDvuHA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by DB8PR04MB7067.eurprd04.prod.outlook.com (2603:10a6:10:12a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6588.31; Tue, 18 Jul 2023 09:50:59 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::613b:e94b:4ccd:f55a]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::613b:e94b:4ccd:f55a%5]) with mapi id 15.20.6588.031; Tue, 18 Jul 2023 09:50:59 +0000 From: Ming Qian <ming.qian@nxp.com> To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, xiahong.bao@nxp.com, eagle.zhou@nxp.com, tao.jiang_2@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 4/5] media: amphion: fix UNUSED_VALUE issue reported by coverity Date: Tue, 18 Jul 2023 17:50:12 +0800 Message-Id: <fa299a44b24e787518cc36129c1b272d8cfeb990.1689673395.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <cover.1689673395.git.ming.qian@nxp.com> References: <cover.1689673395.git.ming.qian@nxp.com> X-ClientProxiedBy: SI2PR04CA0009.apcprd04.prod.outlook.com (2603:1096:4:197::8) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|DB8PR04MB7067:EE_ X-MS-Office365-Filtering-Correlation-Id: b63aea81-dc68-479d-0a18-08db87747d67 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qzJFIYEg7X4tIczFJOtmTJO8cyi7Lar8cXx5XryiRRYl/MntVa66yw9dBSQ6D8KRfBHoc97um1UD7ZgfCi/xYtWiF/qw57pRdDmAcNeCkBhTvNgliFbkjP7C/ut5rz3FAAo6eNagR5RhrjHCCMSjOtKmwgUOXtju5Mg/aA85JPMBFrFZg0nKSkbWGL2uAKqHiO02rH8wfd1JucIDUUjSNFWkCMf0hDo/fVPYtB9mpM1JU2oqeGOTx6yY3inw9nhh1Nl06iiyWODXc2Kn9jnV8I4RfVngfKMWcL398sFpvsh7lqucVKLv42jxP3uezueyBzm978gVwTLgYSzJtpusq+FK9T4VB6gxu5NkRMvzx6yZpZopCoofMITihzUS13N4D0ffDrro+I53ePIS8/tG8FteFyksxoAotEKAWd6gf8hpNqvJ2VxHpuVoHGseLDbkLLycrzre2Gz5dZDixGBoFWKoF6zurVFTdNuC6TFZu6D7f5uhpy4j9K1OQTtl4J5+2tJRQEgEBchdxJwDc9k4WfXlWXl4euSr7/0J3sXvzmhdD0I5Ai8LSPd/Nzd/BsggO50+FMN65hK8r5uGqNtDCJz/tKgTEn2qGzfr+7EMEGVhE41/aajJLmDAxXdlFsWG X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6341.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(376002)(39860400002)(136003)(346002)(396003)(451199021)(7416002)(86362001)(2906002)(4744005)(36756003)(44832011)(2616005)(6512007)(83380400001)(186003)(6506007)(26005)(38350700002)(38100700002)(52116002)(6486002)(6666004)(4326008)(66946007)(66476007)(66556008)(316002)(5660300002)(478600001)(8676002)(41300700001)(8936002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: q7qA6zTkBBljR96zdPLUiqfqTE5PPU8eMmwJQ4MlSMxVwKxxCzWv9/LCvD+U6QysZpH3wQrPaJJBikRSOV/wQ/ZrsMR2OyojQUMrMCKEXgioBasRWVgH/tSAvUNEKXiJO+Y3IjGzS8VHekSaAeU0sPS929hOjZCd8cLA1QbKUQg3E6Znrn31DtBuqetc5EDJdcK2/kS52dfXPndoPWQXlo9ZXhDHwTS63LG/ClwOvRDA6649jGnYwVj3O2hHGFZwlCTvp9RZcGHhrHgzhusI2TY9IM82/VoKXDSlNkXrvEBByCOYew+6kFgGuQOG7O5vmnfeGjCon/Ve5/YqYALQEPzXEcFkzELWcaN0zw8CD0s2UP0UOoEksKZE4nmErNYcHKptiaNsL2pYoGbB5TxhGg+n1ncPCuY68wips+8zXMS6xUzeRKZuRDWv36oF/TEXDGjJzrwFrB/6uHtCkjZsEzAFRLhj3bEBGN59iN62SrKMM/162p3V7AEgmGF11McEgtbgia2YcmrAdwAQFvo+oe8NYMRez2KQmZ7/BfKYYROvaRmSsjM4AOy1o1Zb98mRIuZp92qFYOLnLu3m8XdATLga+3bhC6BPp6NiVAta2DS3jY5BOx1l6NahACDRlLcGRPQjMy5Gi6rJdJCXSjlKCzoJ9z/4JEta3a6jmic9sTKBo+nJNB1kXBDQ1vcCeMwHBVDgUAQD/hlagBInQOx7L0nprVmswehvYbIA9XXWGPjrKZtdObDi7glWp25JAj8K1R1JdIbIDDGP1wUP5yItFmHZeAcjX0cACma+OQtdnTu4mMhDe37ge6pNn/UuRoWryQZllhBVfiP+gRR1Vu/ES6GL30qPv3Y8LqLmqXhPJ/Rv5rFSy+/IlL+C7Qz9K34LaziScZjJlAJ9l7LhiTPsBnNARsPDCm9uop3Xdhlc0bCfh7ZFuDWWKFrv57KB7digRWnONYlIYAOLSMkV2RNfApxQrr6B5MfCNGJaH8Qk3uKJiJyx9SLSZjmwbnezkSaB4/YG+zdf1n1dMjdAQjpEdUXcpEjyevcT7XiT8rpXja4DjDRNXfk3ZexXhTdY1APzrzANy8vDkn/tjhkF5hdMC/NJAs0/su3XMVad+i8j6mVnaETvFuNHhAdD9FxZxS0itC5b1nx8fThuGRMzfZhDUK/gwLTnjn99jR9lvY7pbf2BqqyPlTBpcQwPG0mqJEIGusmcBMbAf1iSIZz4PspzICzU0KZMBK/kqn9KD1khqpnEDQrFz0PYKr05dHHo44qSzv/bstHk3Qb/xP/mrqttOddbJdEGROsGW83b0PxWnH0F022s+UlcT8qpS/H1HojllSHnGkX+dzyzM/Ejx2ECGG8Je2PUSxiPSXFOTaJ3Uog0RSAlgy3yuvDVJgqLcLOOtuBPWUzfUNcMTBdh73A8rmKxyKednHKmtRtOcXi/1szJpFzmNFhz70dIvHu97Tk8glm6r1vo5+Ln/0pdYHvjBiS5tcOMGRsdCO2wsuze6jfeJ2Hb750OZr5ezYV6uqoJRUScAgC6IvKFdD6Q0BguCOtYVmqUCyfu+ix444RZoj6vVSVmBxSBQZrZw7HNUJRu X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b63aea81-dc68-479d-0a18-08db87747d67 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2023 09:50:59.6287 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2REs+6ITlCsC9rn4X6gmnbpAE+PPZfFZ/lvHh1KTVqavu6Pga6C7Hlr1PpHYfOWScE05jTTzdKQqGtLAdaGFqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB7067 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230718_110740_753820_3727D818 X-CRM114-Status: GOOD ( 12.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
media: amphion: fix some issues reported by coverity
|
expand
|
diff --git a/drivers/media/platform/amphion/vpu_cmds.c b/drivers/media/platform/amphion/vpu_cmds.c index 7e137f276c3b..235b71398d40 100644 --- a/drivers/media/platform/amphion/vpu_cmds.c +++ b/drivers/media/platform/amphion/vpu_cmds.c @@ -315,7 +315,7 @@ static int vpu_session_send_cmd(struct vpu_inst *inst, u32 id, void *data) { unsigned long key; int sync = false; - int ret = -EINVAL; + int ret; if (inst->id < 0) return -EINVAL;