From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 824973876C5 for ; Thu, 14 May 2026 10:38:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778755123; cv=none; b=TGPWFjSrpF2G4ms+JpDl6rWRMpHAAyKj4Q4J6Z+4qyJx46iDbF7IsGF7sCKvl3vxfoj++SVcDTEKEMvmyuLyY+NZNqe/tHY+a3py30TZ6nS+3ORRXQR1nAjE3H3+6vh9cH4cwCLGcEMlVARAfINpx4+SSPHed1Vz2OilB7cd2XA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778755123; c=relaxed/simple; bh=7cf1bTUHeTG8hP3P7+pktX/y94hBOhorO+KD/LMZc2s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NqCU8jyREuX+Pac+NBA8GDTIHM25lI/8oQ7wIHGQCaXUbAcPso7Zc38WV9sR62aW5xM8DqEx0UL7qlVKSab7IBO/ixwbxNjATdGySuo/RzcfEyysCAWCRvOJ4yySBPCz/yrVLDBpNfxcgkgIVQaqbdIwvLeldIStfB+BPZiK0UY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Wl4GiMe7; arc=none smtp.client-ip=209.85.167.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Wl4GiMe7" Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-5aa0cf8bca3so21500e87.0 for ; Thu, 14 May 2026 03:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778755119; x=1779359919; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ru+7Hoaiuh+KhENOJt2+sFlK6jzOqyzKGqLurDAOQng=; b=Wl4GiMe7gbGwjIAw8MRncCK0CdD2DY92w238jHKKVIVPo+Y0laL/re4JOT9sGIVsHt Q2hOAFfY1XfcGdvtMhHdazQstrIP1sppMIC8xJmZxKLZvNOq+UJWazxUGlECm0OvX9nX 7o6Mi5i70UhJn2YLNBhe+eOuUnIH45hzheUNJNojQpmy/SK4rR2h3lUewp4/vqvEyfVX u0/VkBEtBXF3HT0wOwGtjG6zSKZVIhM+FVYdv10CUKyJIbUYtRWSWRL492QRxvaycVEG ewYFxjSmkVrAbJc67KwftTD8zBxFQeN1OOgtcoQe+kE8BbacewfBlJNayC5YWAFkeHJx FRVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778755119; x=1779359919; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ru+7Hoaiuh+KhENOJt2+sFlK6jzOqyzKGqLurDAOQng=; b=K/PcgwddGLjSh9LhtPThUqzn+vZ0ue2VNi69HWDM9fhFKosBmnM1C/vZGflFKMt0Jf 5lrrIRBUazfJcq+2QzDULAQSJlHcScf2FWcodNEvWoGEOpxduD7/uTkmCqHVDHEdsZ67 lUrF+mAx9iPrMeQNCsS4KvMwgi+NXLKsfnfDa5yrryPDj4k1dkkagmzydS1pnc+6UZYg OxKNXXGfpk80w4TpIPOheTQ0cTBDe7W0poycERectqrjO79Xot0ghQPTam2d9RBxkB+/ lP5QFQBNGv4yFU//COJxfaC97U4Fx5iQW7aOM8cy2/uwxkLGRVszCgDPz4tZUBQrnGLM mwYA== X-Forwarded-Encrypted: i=1; AFNElJ9HRP/STVWGzAJQjaovgWJ2GUUvV3yF4Ekkbckz5tw2hiyidbnglpL4BsW/67yOdEizF8U9XOT/czZ1RYs=@vger.kernel.org X-Gm-Message-State: AOJu0YwpIYo9uV2Ipx4BaAFa1RPZH2oyuI/kZeOBWdFWoa5T3cZ5uz4f IRA4kpQ/fh84iFFNYIYwe3IceD56cPXBDjZplPht54z37cjMBdHBI5PV X-Gm-Gg: Acq92OHSgrU/Fbsr+Obb+r7L8EJpqXE7cf0n3gj9naxKsIIvbvSaQX80Fc6uzfb6T0i LxYlfchjVgX1+EgY/jjHRQ2x9X9CNtAjlcE3LzhY3aQvS2futZ4x5DU99gwCDVYFjDufhCvSQC6 3yjjCRx5znU2ah+X74IQMnVt3fgtWAZMU53+qzZ+eXAZYi9a1ZFE8gV647YyaeUV2lLq9Pj0ycW 3blJ6aW+Lv3aTbBDHUSOI315k2ezJjPbJiNirAsuAZVHALNqPuxgyzQoRy9l5FULHx2tUy6k91+ loi3z+T8vcYnQY3sCvJF0PuuBGwA166eoQAoB8aiDiJHCapLC1O9/PU15xIEoUyeirEJ3tTyJkd jeEpCXhEEJX9Rn/c1ySwsYOmsc9aoRYH5PVkJRRKHnP2aGrCIRiTbR1g6CP9OAdi2bJiIdX4rzu W4GUbJpVR887q/iYTrsoMvG48ooZgYvrhPlK4Lp2ucl+6Aj97NwBi/A7/4vygcA77gZgDi2OweC W0T6Wpavg8z3A== X-Received: by 2002:a05:6512:1155:b0:5a8:e5b2:c81f with SMTP id 2adb3069b0e04-5a8ef989b2cmr2500743e87.27.1778755119178; Thu, 14 May 2026 03:38:39 -0700 (PDT) Received: from g-virtual-machine.lan (95-25-161-220.broadband.corbina.ru. [95.25.161.220]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a9164bc66bsm392369e87.53.2026.05.14.03.38.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2026 03:38:38 -0700 (PDT) From: Igor Pytko To: andy@kernel.org, hansg@kernel.org, mchehab@kernel.org Cc: sakari.ailus@linux.intel.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, Igor Pytko Subject: [PATCH v3] staging: media: atomisp: fix trailing statements in input_system.c Date: Thu, 14 May 2026 13:38:35 +0300 Message-ID: <20260514103835.13732-1-igorpetindev@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Move return statements to a new line to improve code readability and comply with the Linux kernel coding style. This patch also fixes several checkpatch.pl errors regarding trailing statements throughout the file. Signed-off-by: Igor Pytko --- .../hive_isp_css_common/host/input_system.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 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 9f1199c47..86c9d7a48 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 @@ -423,7 +423,8 @@ static input_system_err_t input_system_configure_channel( return INPUT_SYSTEM_ERR_PARAMETER_NOT_SUPPORTED; } - if (error != INPUT_SYSTEM_ERR_NO_ERROR) return error; + if (error != INPUT_SYSTEM_ERR_NO_ERROR) + return error; // Input switch channel configurations must be combined in united config. config.input_switch_cfg.hsync_data_reg[channel.source_cfg.csi_cfg.csi_port * 2] = @@ -1094,13 +1095,15 @@ static input_system_err_t input_system_configure_channel_sensor( status = set_source_type(&config.source_type, channel.source_type, &config.source_type_flags); - if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status; + if (status != INPUT_SYSTEM_ERR_NO_ERROR) + return status; // Check for conflicts on source (implicitly on multicast, capture unit and input buffer). status = set_csi_cfg(&config.csi_value[port], &channel.source_cfg.csi_cfg, &config.csi_flags[port]); - if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status; + if (status != INPUT_SYSTEM_ERR_NO_ERROR) + return status; switch (channel.source_cfg.csi_cfg.buffering_mode) { case INPUT_SYSTEM_FIFO_CAPTURE: @@ -1109,7 +1112,8 @@ static input_system_err_t input_system_configure_channel_sensor( mux = INPUT_SYSTEM_MIPI_PORT0 + port; status = input_system_multiplexer_cfg(&config.multiplexer, mux, &config.multiplexer_flags); - if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status; + if (status != INPUT_SYSTEM_ERR_NO_ERROR) + return status; config.multicast[port] = INPUT_SYSTEM_CSI_BACKEND; // Shared resource, so it should be blocked. @@ -1124,7 +1128,8 @@ static input_system_err_t input_system_configure_channel_sensor( mux = INPUT_SYSTEM_ACQUISITION_UNIT; status = input_system_multiplexer_cfg(&config.multiplexer, mux, &config.multiplexer_flags); - if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status; + if (status != INPUT_SYSTEM_ERR_NO_ERROR) + return status; config.multicast[port] = INPUT_SYSTEM_INPUT_BUFFER; // Shared resource, so it should be blocked. @@ -1139,7 +1144,8 @@ static input_system_err_t input_system_configure_channel_sensor( mux = INPUT_SYSTEM_ACQUISITION_UNIT; status = input_system_multiplexer_cfg(&config.multiplexer, mux, &config.multiplexer_flags); - if (status != INPUT_SYSTEM_ERR_NO_ERROR) return status; + if (status != INPUT_SYSTEM_ERR_NO_ERROR) + return status; config.multicast[port] = INPUT_SYSTEM_INPUT_BUFFER; // Shared resource, so it should be blocked. -- 2.43.0