From patchwork Tue Aug 6 15:29:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13755188 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 D7AFEC52D71 for ; Tue, 6 Aug 2024 15:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=tprBLK1iiveUCYg/AarvtiLLOVA4FPbpWQNyejze9a8=; b=3eIBRh4s/hr0ag 1OwPEkWhLoorH0OTDNCbXc3tZmyu2tgbOB6Uv1gS9mG6ysAZL1CXjwXMKLO1Io+7gdEl2prX8fGAH 5gE3mfdNCdopS7wP+1SQhL0a8szafwXH8f6AnDinRXonJS7ZqiBHYyNNHUfB5j0eFBxLuIlgF7vtQ x5nd+ZkRo3tAWCAJTpJ0/rA9ivaSaqN+5mj3OjcIXBIRg3qRZel4TDRbmf4ApBAVq51YKm3lkV3xJ EPFjOgoMuJUIi/+du2CD88pvrPJRsem6b0mlom6bS60oJSCFsAiJnpQxYF5W2kewq6NCG8pSIUskG aHziKgzwfVegLdvxmBXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbMAS-00000002Bx0-1ibz; Tue, 06 Aug 2024 15:32:08 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbM8M-00000002BQh-2z21 for linux-arm-kernel@lists.infradead.org; Tue, 06 Aug 2024 15:30:00 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2f029e9c9cfso12050341fa.2 for ; Tue, 06 Aug 2024 08:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1722958196; x=1723562996; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=tprBLK1iiveUCYg/AarvtiLLOVA4FPbpWQNyejze9a8=; b=VSkAwzkqLIo3tJdy3aDRIacba1Jw5QEhb0jYyCSp/mbj/jntRtvgeUnJGpT2HnND87 iRgxAAoA1Hml6hkPeDIulS0QnIKgQnMo0FhwM2wfoJbCKb6OLSc0Cc26eA0ztPoIIKRr IC9XKfxckgWqILEJkJbErJWOYPJPBBZL24jQWgGercfPtPZAcfhATE3rG4u3/1cEBOzG G7deYIObtKFGYtK03FJYVnTXFsw7v4kjSNK+7bJZtcVBvh3fbJtzCpDAabTjFG0VBfZR ErKbhC4KZl7eKCmg7tUusLammBAjeBOhcz5N8nImT/2LOq+iTjubGQOnlinAPczoYfjJ B+Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722958196; x=1723562996; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tprBLK1iiveUCYg/AarvtiLLOVA4FPbpWQNyejze9a8=; b=ojKDz5x5QGEsW+cfwHGvxcSrKv1F2zM+eXJHtcxg1VVcjFajXWH5qKlBFq5ibqg2yn U4NRhHlwgwTyk5YehUIeItXRVtnrD0an/RrWV+7n8MwkDpBEcA8BWAQRjhnvwbDSNvy5 TEQadVG+cQ0EjQthwPZ1gEju5L3EgwIWpGwqasdemKBeRd0kJYxT7qHYMbbEj4nPgVgQ 5nVcH6HvJr4bkv15U6y0VB4zCzPg4JKAouKwahwIFxFbVwQrjUer87k6uqGHt+DvaFHR OzfGgtap+4rF3K5NbA5owBe1qwVDVOB5CPXiyDI/CI3MbCHzeT25wm3cbafhYUSHPSR2 SxRQ== X-Forwarded-Encrypted: i=1; AJvYcCXjQEOkck15tDwdLm+hzdXFQ0DfpR/vHhf7mgX1eFQIqrRRS6I4JqLfMMTrsFHhuNbjFVVW8M1Jk0C6a8ylWpALt/IpMH0YA9dJSQt/+LYY1Psoy1U= X-Gm-Message-State: AOJu0YxkEXsl+Hib99zkFfWCSLBa5TWLPQySodI5J5QQ7fDDktvfQ7ex 4Sqvpqw0OE+Ac3l+5UwO77EPB/LnN0ERbVSw9m/rPBBmV4n3Ao+AiYA7irlJIQc= X-Google-Smtp-Source: AGHT+IHRZmLaStmO8UYKkVKFqiPyc0B8sPefyyWX408Vg/RWnhXs/VBIaM9S0t9/2UoAAbzROa8OcA== X-Received: by 2002:a2e:9cc9:0:b0:2ef:1c0f:a0f3 with SMTP id 38308e7fff4ca-2f15aa88b76mr125008231fa.6.1722958195923; Tue, 06 Aug 2024 08:29:55 -0700 (PDT) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9d4294fsm555274266b.103.2024.08.06.08.29.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 08:29:55 -0700 (PDT) From: =?utf-8?q?Andr=C3=A9_Draszik?= Subject: [PATCH 0/2] tty: serial: samsung_tty: simple cleanups Date: Tue, 06 Aug 2024 16:29:44 +0100 Message-Id: <20240806-samsung-tty-cleanup-v1-0-a68d3abf31fe@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAGlBsmYC/x3MwQpAQBCA4VfRnE3tbkheRQ4Ts0yxtINI3t3m+ B3+/wHlKKzQZA9EPkVlDQk2z6CfKIyMMiSDM64wtalQadEjjLjvN/YzUzg29J7YlrYkVxeQyi2 yl+u/tt37fnhqy7ZlAAAA To: Krzysztof Kozlowski , Alim Akhtar , Greg Kroah-Hartman , Jiri Slaby Cc: Peter Griffin , Tudor Ambarus , Will McVicker , kernel-team@android.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, =?utf-8?q?Andr?= =?utf-8?q?=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240806_082958_777554_A113892A X-CRM114-Status: UNSURE ( 6.94 ) X-CRM114-Notice: Please train this message. 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 While looking through the samsung tty driver, I've spotted a few things that can be simplified by removing unused function arguments and by avoiding some duplicated variables and casting. There are no functional changes here. Signed-off-by: André Draszik --- André Draszik (2): tty: serial: samsung_tty: drop unused argument to irq handlers tty: serial: samsung_tty: cast the interrupt's void *id just once drivers/tty/serial/samsung_tty.c | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) --- base-commit: 1e391b34f6aa043c7afa40a2103163a0ef06d179 change-id: 20240806-samsung-tty-cleanup-ffae1515a284 Best regards,