From patchwork Sat May 8 13:17:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Skripkin X-Patchwork-Id: 12246055 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA921C433ED for ; Sat, 8 May 2021 13:17:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 95098613EE for ; Sat, 8 May 2021 13:17:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231180AbhEHNS1 (ORCPT ); Sat, 8 May 2021 09:18:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230438AbhEHNS0 (ORCPT ); Sat, 8 May 2021 09:18:26 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F324C061574; Sat, 8 May 2021 06:17:24 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id x2so16679664lff.10; Sat, 08 May 2021 06:17:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IqIPJJa374NLUqCHGDm7/7oqA7WluXXWMUnsKHbUjRk=; b=G7n5QwQnqlHWJUyZlWJbQbm69J5Xhdd4p7ykcNP16YHE3yjOhG5FWBrjAoQnm6mas7 lkFxD0jnTXMvr6+yXPBi5OXi3qQ+3ggbs14zLCSWTCcKQ9IdVMsA+NlymI8onhW20Cyt UPkEuJSpRezF7dyZ2pcktAYsHpwNCfNo+1+E8oaxujBDzfIaUQevAJimYHxvIXR1yfIe 5ekOlL8B7M/DCr1LeTbYOQWUuVCb6j5CmCEBZgrIp/IjDCzD1QL7Myb0TOj1ue00NdHc UWOrAZjg0/77+X0NgO7YE55qttsAANzaonkQnelWyJ6MJdvvBUBYb+wf6asVbkw5BE1K SgYg== 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:mime-version:content-transfer-encoding; bh=IqIPJJa374NLUqCHGDm7/7oqA7WluXXWMUnsKHbUjRk=; b=WRwUopakxu8Qf1E0IV1IdVk3VzanzhOi3Mj9QdYS/SnKyStvuQqde4wi6VC0eHDSLM m5OhiMdZWoQpLDzJlRrrN1cMESypeTUcevxpErB3HkaKJybNRAuXZRSkAqnO3twp4rZv 8FaWiRA8RM/jWz7ZlAcTETJHX5kkPVWA8URlb0cHYo34g0Duk8l2PSg6HTFLBmnD3Sde EffLxiy+gJfITeqzGS0UaecjpHHpLruEdafIoP08ZZpFE3qaqiiNxDjEP5y4NBEREvIY dasuSM6JhM4Rh7Mg4pJIZpuEBl4i1CQvG/9ezkYPV9E3GxrJQKnRj3iNy6kay182jXWD DcOQ== X-Gm-Message-State: AOAM533b1eFlCSh1dCEOHkbWNMqQwPFExqDJFxtZJiT2chBbrnH98B11 MP0BfwzTmP2TyRg9RqSK4MM= X-Google-Smtp-Source: ABdhPJx/fVUU6CXFP8zvE4NAJ35Rfkq3wppWAa7ttRNNi2uAeDj59oOGUAITF8ywkveV6DW0wKKELA== X-Received: by 2002:ac2:44da:: with SMTP id d26mr10291008lfm.522.1620479842624; Sat, 08 May 2021 06:17:22 -0700 (PDT) Received: from localhost.localdomain ([185.215.60.119]) by smtp.gmail.com with ESMTPSA id m25sm1646566lfo.279.2021.05.08.06.17.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 May 2021 06:17:22 -0700 (PDT) From: Pavel Skripkin To: mchehab@kernel.org, sakari.ailus@linux.intel.com, gregkh@linuxfoundation.org Cc: linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Pavel Skripkin Subject: [PATCH v4 2/3] staging: media: atomisp: remove dublicate code Date: Sat, 8 May 2021 16:17:20 +0300 Message-Id: <3944cd10bb5a64157781b1e0ef044c62c05f07c7.1620479607.git.paskripkin@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Removed dublicate returns and breaks inside switch statements and useless return after switch. Signed-off-by: Pavel Skripkin --- .../pci/hive_isp_css_common/host/input_system.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c index fd82997b11cc..76414b6b43c9 100644 --- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c +++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_system.c @@ -903,11 +903,8 @@ static input_system_err_t input_system_configure_channel( error = input_system_configure_channel_sensor(channel); break; case INPUT_SYSTEM_SOURCE_TPG: - return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; case INPUT_SYSTEM_SOURCE_PRBS: - return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; case INPUT_SYSTEM_SOURCE_FIFO: - return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; default: return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; } @@ -1301,13 +1298,7 @@ static input_system_err_t configuration_to_registers(void) break; case INPUT_SYSTEM_SOURCE_TPG: - - break; - case INPUT_SYSTEM_SOURCE_PRBS: - - break; - case INPUT_SYSTEM_SOURCE_FIFO: break; @@ -1688,15 +1679,11 @@ static input_system_err_t input_system_configure_channel_sensor( break; case INPUT_SYSTEM_FIFO_CAPTURE_WITH_COUNTING: - return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; case INPUT_SYSTEM_XMEM_CAPTURE: - return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; case INPUT_SYSTEM_XMEM_ACQUIRE: - return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; default: return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; } - return INPUT_SYSTEM_ERR_NO_ERROR; } // Test flags and set structure.