From patchwork Tue Nov 28 14:39:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 13471269 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Q4KjlMdx" Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A68D4B for ; Tue, 28 Nov 2023 06:40:03 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-332fd81fc8dso1827037f8f.3 for ; Tue, 28 Nov 2023 06:40:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701182402; x=1701787202; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=pf2DfL3Xh784BuSAN82jj5QlQKywpWu+Wh7+Xy6CbRs=; b=Q4KjlMdxTapkbOb2ioTBUKEAMM7mscUzFNvl3IAywCoIfG02lqJK80lq+VHdm//JGf JX2d69F9/hLq216t5NI151MiQ2IJg57vE2zhNSc7F2BE+eTSgIDcLd9vsNkF5pqQGR2y 6Dcv353IlXNpTW35MLzdf4JK8uvEhJFSe6QzHfMVCtJFVvrMfNJdRsdRB8QbKp7+v0Bp K2QYm99Idl60pHeSvrHeLaYr21n4urgY31MaErZ8cY+Lwc11/li5F4jx6IdihmfQU34W Ed94XFQr1VLlnj2flMInPylulZqAiS1jg1ngVhcN3wEtq8QthlFsxYWgdKIQx3ncZdPU 3Yww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701182402; x=1701787202; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pf2DfL3Xh784BuSAN82jj5QlQKywpWu+Wh7+Xy6CbRs=; b=K4aZvkHDHVtxfTFsQ43iQBUvtUBt8E9O2iPBjsByEdxd2Yd22PtbrajJMaa8dNaxsH QicaODmSbUKM7Tb3yMpCJpvS1MQmq7fZKLcz5XOCeM7txESGwOBWU2zB+RSq+QK2wYoZ lk1nIUiRqp/XTf+OIVyoRtWBQJoGoYNfLFAZX90oxdmYhSxUW5uERbfaTi8dVYnRluPb c4N28iCVfDlFnQ47qX0RKmRd8gYBXPEl9BZqxSc1nZQoR7IOPfMmWVv2MKgojSe2zlMT HJ7vRCMMxwbOg4sL54ICwRC4CgBkxadAa6RVwZ2y694zlzYblxwzGI2BEEbpeHUUPqhO uLYw== X-Gm-Message-State: AOJu0YyiPXbr7ATKe99wT21bWQ5XwXTyNNqMDf4NjHj++sl3Iw8MlyeZ IsC1wT8Jkwta9xAVERz8daG7TA== X-Google-Smtp-Source: AGHT+IGYMuSYtzC3hhgkKzrn7uQuIfeDdduNP779y1aGb9C8fmBYxztzj7SxI0lLQ+DhL8H4tStW1Q== X-Received: by 2002:a5d:484c:0:b0:32f:80cf:c3cd with SMTP id n12-20020a5d484c000000b0032f80cfc3cdmr11478470wrs.4.1701182401913; Tue, 28 Nov 2023 06:40:01 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id t6-20020a05600001c600b00332ff21038fsm6730985wrx.106.2023.11.28.06.40.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 06:40:01 -0800 (PST) Date: Tue, 28 Nov 2023 17:39:58 +0300 From: Dan Carpenter To: Nas Chung Cc: Jackson Lee , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] media: chips-media: wave5: remove duplicate check Message-ID: <9bdce1f1-b2f0-4b11-9dfd-16ca7048281b@moroto.mountain> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email haha only kidding We already verified that "ret" is zero a few lines earlier. Delete this duplicate check. Signed-off-by: Dan Carpenter Reviewed-by: Nicolas Dufresne --- drivers/media/platform/chips-media/wave5/wave5-hw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/platform/chips-media/wave5/wave5-hw.c b/drivers/media/platform/chips-media/wave5/wave5-hw.c index 3fcb2d92add8..f1e022fb148e 100644 --- a/drivers/media/platform/chips-media/wave5/wave5-hw.c +++ b/drivers/media/platform/chips-media/wave5/wave5-hw.c @@ -578,9 +578,6 @@ int wave5_vpu_dec_init_seq(struct vpu_instance *inst) dev_dbg(inst->dev->dev, "%s: init seq sent (queue %u : %u)\n", __func__, p_dec_info->instance_queue_count, p_dec_info->report_queue_count); - if (ret) - return ret; - return 0; }