From patchwork Fri Jan 19 10:45:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13523585 Return-Path: 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 D5194C47DB7 for ; Fri, 19 Jan 2024 10:46:28 +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=tJSvcol7Yw4f7RJ+aQj1Z+BH5dokMMn6IQY7i524FrU=; b=JyMv3kmOwPYOfV JRwC5NS2Z/uegzNCs0L1n3tXW1VlmO5xBt3fCdXTuWONbviX6r65WvHi2FIpFKZnL/xf3pNK8wMg7 LS8fhJfAKIadwubIF1yU11C8oNssuuR9lrUf7lNM+cduClKpHYa4Rr7JrnnHauSGEFXkDvK7J1//C BkuvNLn8bVgsjCotUwXo2lP+8/dHZYlG6d56Y/xLT/YctrwCJZ/Ci7sFaMqkUmx3ZchiATR52VzWJ 8zGssvU20bmY5xPiCrhJm1FLojUpSHRqkbuqD/67Oa1Hld485Kv6eqc+SVTGS01iTg6sWxpLpaQ57 xf9Bpv7VHzkELUxAWsug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQmNk-0057UG-1U; Fri, 19 Jan 2024 10:45:52 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQmNZ-0057KX-2q for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2024 10:45:43 +0000 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-33921b95dddso173650f8f.1 for ; Fri, 19 Jan 2024 02:45:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705661138; x=1706265938; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hQ40aSkF8Aok0dVvTVGIVu4hOfQge6DrOyhL11J8cEA=; b=BRlGp3Wa3O+bovbPxy2tpBpjD2JeGb37mgmbVZRC8eTyO9/gMZMO/TRBEpzUdS993g Nm8E4XiD7YSUpnm4Y/oQi/Pg6c3ZHDXoYaV0xrqQqRI2LhWzbhWNdaQ76ULF6OxjMzfg aJtHADN6kb2kMRzd0hKHBGGozuB8DTX/pLcU+LTtzK98WzPJ7qF37q7dSsEWRVKA16dv JSurYmNZjmDO11FjRznCvUXl73pJ5+1HKLImvainqClpTzy9UKo+Y30Ae/bRufXYljs/ tYS4O1/S6ivygTSbCChDRhhqLE+HF0aBGl9bGg5WTHqbaHsVHN258frkwKT30T7gOccU XxTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705661138; x=1706265938; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hQ40aSkF8Aok0dVvTVGIVu4hOfQge6DrOyhL11J8cEA=; b=S+PP7ZkI1B58rSnhhfSEIle8aDh+BOiU2WLXD0WgXEJB+0lUKNWb7u7BtyKt5qkkBm 3rhJp4VtE7wZ10Jhx0U6CPR2f5lEqq0iKiV2klG4oa7MHYtZMoVxXvt1Vw45y5FB/62e tn9RU7PjKGWxtOw37spkkXu0ufSnhM0gakvnn+AtkwN3w2vaNKA04aEEwIDwGw7uD7ik 71atlz7tkHkQaroM0kP/BVteDBP8sResKCp7iVdbelAYKiN5cUSZtRRmhCzmDWmhLe6B Rv5avwkccyJNi4IGgd8Kc4ZrueIq1v4Kv7LFf0+LL/mIPXt+HvHLE0IUpAfSTEbjxXZH cPLQ== X-Gm-Message-State: AOJu0YwQa6mghJpbW5kOSM0EJQvllma4+rwRbUbvog4nwoH+ENJ6WDC1 dyFNJDGgPz3KDfzRAybn4ABdP50JUZwIx9UqEVro1S6JUUwDOBSvh7zZFodN4zWf1MmNxkI+fqU Ip+g= X-Google-Smtp-Source: AGHT+IFB56z75wwv61vkNgNKZ52ys1BI0PMljalI5CjTRNffvDMu2NmbxLRBYtutQlkZKDjxtS4Jcg== X-Received: by 2002:a7b:c8d3:0:b0:40e:873b:cf73 with SMTP id f19-20020a7bc8d3000000b0040e873bcf73mr452698wml.54.1705661138275; Fri, 19 Jan 2024 02:45:38 -0800 (PST) Received: from ta2.c.googlers.com.com (88.140.78.34.bc.googleusercontent.com. [34.78.140.88]) by smtp.gmail.com with ESMTPSA id fm16-20020a05600c0c1000b0040ea10178f3sm77470wmb.21.2024.01.19.02.45.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 02:45:37 -0800 (PST) From: Tudor Ambarus To: gregkh@linuxfoundation.org, jirislaby@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: alim.akhtar@samsung.com, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, peter.griffin@linaro.org, semen.protsenko@linaro.org, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH v2 09/19] tty: serial: samsung: remove braces on single statement block Date: Fri, 19 Jan 2024 10:45:16 +0000 Message-ID: <20240119104526.1221243-10-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240119104526.1221243-1-tudor.ambarus@linaro.org> References: <20240119104526.1221243-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240119_024541_924379_5AE9F102 X-CRM114-Status: GOOD ( 10.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Braces {} are not necessary for single statement blocks. Remove braces on single statement block. Reviewed-by: Sam Protsenko Signed-off-by: Tudor Ambarus --- drivers/tty/serial/samsung_tty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c index 8b396c950933..303b67498c65 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2061,9 +2061,8 @@ static void s3c24xx_serial_remove(struct platform_device *dev) { struct uart_port *port = s3c24xx_dev_to_port(&dev->dev); - if (port) { + if (port) uart_remove_one_port(&s3c24xx_uart_drv, port); - } uart_unregister_driver(&s3c24xx_uart_drv); }