From patchwork Wed Feb 7 10:18:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 197834 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2129626dyb; Wed, 7 Feb 2024 02:19:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7z1dOHR+g2596Hoz+7N2OllDPmdxPvDmhE8sJ+tLnNC39CqfFFbcyl68p7dMGewz8Lkj7 X-Received: by 2002:a17:906:512:b0:a37:ad51:86dc with SMTP id j18-20020a170906051200b00a37ad5186dcmr3827784eja.9.1707301150145; Wed, 07 Feb 2024 02:19:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707301150; cv=pass; d=google.com; s=arc-20160816; b=bCbFaK4mvfMn9YODUen31FzfQyHkracAJ2YFn8amC2NsopuF6BfiT09iJGgOwEeb4B n5Q8GnUdwYSrzoO/ZwUW97KEYTaYdTNbRJFiPBqVq1+m6j5wBFIkGf43TU17q3f5G6h+ SF8T+bYb+3rtecooXPNB5biXStnYLuT4F3348ZNkmXNFouysHWp+tM4xi1s7onZ8uFjg QwhAKIzBa6RwekkL6yyX/ZF3HjsGG4Qapktdim7MjbTxRJEIUNHP/AzucQYRjSZIygmB 2lTA9/qLraBiUBSBVtzv/gH97aGocz3XKx7kzNrjgejEBMdNrp6nQIEFQ6cll+Bygq2x z9rw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=DuqJU1WwYzrM0YOnFnIci0yeB3MaXmMpyMCTJ0LMXCk=; fh=sbBD/HU8b56szTTyGLJ7r2RIJys7H/ghqDJCnke+3rw=; b=AWqAiO56+ky64jI1Jetpka0o2KzEPmArt6qzvxfYzKqWPVXCVkoJ34r8nmkBfanP+z mnjSXo6fPg2HTx77PaR62poI6isyAbSM1gDbbcDFHd3g/fHCD4GaRMI94CKTrjDuBGZG Y6OGbxq6ljckPscwfdQjeknjn3I3YvFvV7lXAzuWPpba+1RD/4/0BFSv7udC5k6vOnvu 82Agf5UsRx6E4tbdYdZRz/2WGa4B5SDNm+0vw1uP03DFEXhRlPoO9kv3uttVhpboMWmy yKL5ZXjpHRoizQwP6e8iVlVd0eCIGPZjothXXyq5I1h9ptp5230sh42viOe/ZByI7oEa Qg1w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kkrn/6Ah"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-56297-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56297-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCVnfamUuTs+Nni6M3h1lftMr9od1QOVCICxngzarlGps8xDrqc39IyuphQpMwVFclClGzAsMrH28f76iFXEiVkq7w12Ug== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id pv26-20020a170907209a00b00a382f17c9fcsi734619ejb.56.2024.02.07.02.19.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 02:19:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56297-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="kkrn/6Ah"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-56297-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56297-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BF6E11F2363D for ; Wed, 7 Feb 2024 10:19:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0603925777; Wed, 7 Feb 2024 10:18:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kkrn/6Ah" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.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 B6C4D2560C; Wed, 7 Feb 2024 10:18:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707301118; cv=none; b=WYQoH/zY2swSQcgyYIpaMHcUW8wqYspRHjjb8nL8fe8AH2Tv3FPHa4LLPJniEyxRsPWMpPAPfBuiYys22IY4IfX319RAoVcUv51it1BRr6Mf8FmS+JpPBS5XnftDyhJ8UkXkxksgwwsoMJsW/uAzTKlnpwFMFSHZoeBmApaB6h0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707301118; c=relaxed/simple; bh=rYCzRom9fn/h+G7iLC9GyFKbGOK0LFNpk4LSplc7INs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=pEoKX4FxGIkA306nuiPrRwL0/ZEp2EdOfkwlHury6Uw9mTEi+p3WH8nsV/MakOhsYnPuYwcCtDGtOqwKzzRAQSzvXUpw+SJDWY0B/zbVMA6Fq1gyFQ0LVdhSsOCpS82AoJyTW2+kg4JEclo+3sbspI4wSH0F1pOmeKmnfboqKWE= 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=kkrn/6Ah; arc=none smtp.client-ip=209.85.128.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 Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4101d096c92so595725e9.1; Wed, 07 Feb 2024 02:18:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707301115; x=1707905915; 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=DuqJU1WwYzrM0YOnFnIci0yeB3MaXmMpyMCTJ0LMXCk=; b=kkrn/6AhsAMps0totkND93sr9qejKCPAIV8MEyHqw6oY82MPgHwGR4hngAT2tklYWr Qf94qAR7c7913GSpzpR7oNgIoHNwUiEIII2I+p5KPz8X2ttpZJ50TrpHTvUXrtJQmQHR U2hjvRs7WORQYrp3Q9IOhqsb1RO3BTf1SOA1yFeP9B8k3ONgWCBCHzIGvuLpuea+F57O QuPEpwp1C/YybPUW/YCwv67foeolJpP0qacN0W6PaBPou1zuA+euBA1stDZaxyAw3CZf o/hFwIKx2BzYNQA1zL9ylAM/xj2ZlRvluIpgVLR7yupcK28pQQ7GX2pS7XqakmCnUnYw i/7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707301115; x=1707905915; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DuqJU1WwYzrM0YOnFnIci0yeB3MaXmMpyMCTJ0LMXCk=; b=TXttT2VswnQuo18L6BPmFYft19l0yyLDX7tZa/Sm/FP7TQXH4X5Z3vLT7IdrZJ0zrU O4kPnxWXW6Kx1HH6Zj4YlKQ0eiJSPJoGauct23TLmBY8G05ZyAe2tSUciRxXW23yXzFl 7HcZdHKsrxqtEX1o7ftCgTPefw/Vce9S3unvW6tfBWYKvhwND1pq7GTGTQnyf3LAwWKd 5MXRlyVnL8SLHT6nbIFij322jT7MKgELJkTuYvk3HoO7ql17Juu8O3C/1khRNnuy+QyB mUYVOMBIzZvcWqQjAeRWkIhd6j57QEiKyRpo1J2OR9YJe6notJmChIJdlU/IpMKRZwYh pUCg== X-Gm-Message-State: AOJu0YwmWrkekG0eoxooX4OT6n5ezSePL7yIJBVm4KfnqOijABDzerjE 2DnWFspQ8yYUeBq1OEQ1onigzBtcru3xEcAW9tsMcMdoObCTRkPxGGKkWFDZzhY= X-Received: by 2002:a05:600c:468f:b0:40f:bad2:72ed with SMTP id p15-20020a05600c468f00b0040fbad272edmr3953733wmo.4.1707301114581; Wed, 07 Feb 2024 02:18:34 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVzqfBJGahtWOsT0vua+jRnCDjn6edUptEoU7HQaQlhjo0xttUqNtZ3DUSyJ1EkyhGYdj43ZF2CtLVyUA3yXofoqhTzCIpY8pFhq/gQnD/Y3Er5RM0ZS+Ra5hZ7+5lqTTSZyQd45c5+F/lo2tciAIv/TdPAkq2ejbbh1l7OK6bic2NGVULUMeuKBRrRunY5t9IzKuMsqSjBvjGC8w== Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id h16-20020a05600c315000b0040efbdd2376sm1559430wmo.41.2024.02.07.02.18.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 02:18:34 -0800 (PST) From: Colin Ian King To: Johan Hovold , Greg Kroah-Hartman , linux-usb@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] USB: serial: oti6858: Remove redundant assignment to variable divisor Date: Wed, 7 Feb 2024 10:18:33 +0000 Message-Id: <20240207101833.2440799-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790235010843663537 X-GMAIL-MSGID: 1790235010843663537 The variable divisor is being assigned a value that is not being read afterward, it is being re-assigned later in both paths of an if statement. The assignment is redundant and can be removed. Cleans up clang scan warning: drivers/usb/serial/oti6858.c:412:2: warning: Value stored to 'divisor' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King --- drivers/usb/serial/oti6858.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index 6365cfe5402c..fa07f6ff9ecc 100644 --- a/drivers/usb/serial/oti6858.c +++ b/drivers/usb/serial/oti6858.c @@ -409,7 +409,6 @@ static void oti6858_set_termios(struct tty_struct *tty, cflag = tty->termios.c_cflag; spin_lock_irqsave(&priv->lock, flags); - divisor = priv->pending_setup.divisor; frame_fmt = priv->pending_setup.frame_fmt; control = priv->pending_setup.control; spin_unlock_irqrestore(&priv->lock, flags);