From patchwork Wed Jan 10 10:20:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13515898 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 1008FC3DA6E for ; Wed, 10 Jan 2024 10:21: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=usIZXr8xVdhtasDzZ9rwhclilyfOE+jY6kIPIofJkjQ=; b=RCe6NSLCKA0R5j V0QH7ktPOI5+rpRCfslYdNH/rRl4Mcy/bFss0IvrP41UFEt9udaNzbmuDJmncV+GH0qALqs7M8AIU mOwXTzxFMRHuYpyr/eRJgwzkT6xoW7JMCIotGHo7QqvjZK3aCaEsaX3ifjgnyIFBzvU0zIlRWMUXi P1rGaM4oT+wPqFYFuD/Pp/rT+Di19YxtgccD8x08xSg8DzTHWyvUeLKTIahI5cxhRDm8R4mv8SJ8d 2hVe4wew8QoCyy/Ivp1Vpd4ODn3TiumNhK+T26oSwR/qln31v2m+bYzq4alOyrlnlBsTMx9EqTDyD 1nDmcr6FYS3fjykcs9hA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNVi8-00B08k-1A; Wed, 10 Jan 2024 10:21:24 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNVhy-00Azyt-1L for linux-arm-kernel@lists.infradead.org; Wed, 10 Jan 2024 10:21:15 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-40e4d515cdeso20487935e9.1 for ; Wed, 10 Jan 2024 02:21:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704882073; x=1705486873; 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=mwqnqS/wycxZAhr2uerf+qQVYpnKiVk2U9Lnh+3LXKA=; b=VuMRPvN42XAl7EQ6Uv7+t8FnxKAmiXNdR/FDR+J5eCtXUlOyGvtul9rv9WfnrXNwD9 oY2f2l7VlEIgAzRAqJV5JzhzZ1QVSvNyIpfNbNeh9cNmEd6FxFYgIaJlCmQrqCVTXaxW EwjgtNkfX48DlujNjIG5ABdIqkQoWOpH8Q0DqkAXApF+bfQLN3HHYrn6M6myVtUFYB7/ Qvm6He84skaetMVROgZ+iGMT8q4JNUOAP90wVUua1IJvxyH79oAP3+KvT6Fob2k9nfJ8 cQOI3hDKoeuaISiRM7poGenEaoX+Ox+D9R5rpnBfPa8xV8GYBTdc121y/JXiE6XmBj2S lXYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704882073; x=1705486873; 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=mwqnqS/wycxZAhr2uerf+qQVYpnKiVk2U9Lnh+3LXKA=; b=DlR/loBSPIFy/Gpk05QYlNdMPolCIhc4cGpOs3eAX7K2qlvEzZUG45UF8GNFx4S34c qc/gIm94mK4dVIq7xNoH8a9oKVIYCoDRr0130ZhsUL/JEmKDKcLPyhU5/8Z1gHddZm+S 5DASl+FLy0c5mJoBPzUZ9PVYtAqQUEcBANd+skkFfV0qnCsqdyd9aqHXoGJUfIGuR89b xDaSuLVaufblkkFbHyPa1goJRVbGiUmzqSCX5SNCkPl8mEAOGncZbwe8y8GbXCWk4mcO /ZiIKJv1iX2GmtIy55NdjulCdLi6/S3zI4YOCXOIoHtWx0xPSpHqIz+y0m4xp6hhqSMj SGEA== X-Gm-Message-State: AOJu0YxyzZXVRT5Vtxbu7rXMSEJwma5S3Vkzh6P59j+GMw/Z+HjyDx9c ckkVm7610B/9DCuWvXsA0Gh2Ycvw7tmWIg== X-Google-Smtp-Source: AGHT+IGcQBbhMHK+EKOMon1hp4+KGJv3InwLXWLO1SrdmS31XEWMZkMTbvJjozVPLu3hLFnAqJN0FA== X-Received: by 2002:a05:600c:519b:b0:40e:49b2:2c9e with SMTP id fa27-20020a05600c519b00b0040e49b22c9emr439607wmb.34.1704882073274; Wed, 10 Jan 2024 02:21:13 -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 j7-20020a05600c190700b0040e52cac976sm1625302wmq.29.2024.01.10.02.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 02:21:12 -0800 (PST) From: Tudor Ambarus To: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH 07/18] tty: serial: samsung: remove braces on single statement block Date: Wed, 10 Jan 2024 10:20:51 +0000 Message-ID: <20240110102102.61587-8-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20240110102102.61587-1-tudor.ambarus@linaro.org> References: <20240110102102.61587-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-20240110_022114_482586_8A8D0111 X-CRM114-Status: GOOD ( 11.14 ) 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. Signed-off-by: Tudor Ambarus Reviewed-by: Sam Protsenko --- 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 d5f9bec24b8e..11ae3a1dcdc3 100644 --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -2062,9 +2062,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); }