Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp595035lqt; Mon, 18 Mar 2024 18:42:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTiyNOab6b7yKQusyrbuCE76Q287GuKhb0AnMRcSpgf9anu1TLTXdkRB/lq84x/i7SCth4ourEKzIanvredA9R39GZuJsouFyDDdf54Q== X-Google-Smtp-Source: AGHT+IF4cngK7RL44V2yH6MTxBEbdmXsMDJMWUElbyzkv1gE5CeoU6EI1s4S2MWZv6LaQJxGgH/7 X-Received: by 2002:a17:906:ee89:b0:a46:be83:36e2 with SMTP id wt9-20020a170906ee8900b00a46be8336e2mr3667974ejb.24.1710812567812; Mon, 18 Mar 2024 18:42:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710812567; cv=pass; d=google.com; s=arc-20160816; b=itG5p/hUhRSEKuLVLwpuonzg4MgujUWCSbkhXWOxkZ94kxz3BWxBe3CIZophfl5WDK ayXj8JT5v4ivs6MUVTOG9S28nZV77jYzfgSCwRYqnv9bxf2zVate+pU2xdsUp0BRhWUU K+2UYy1kkrTb/Wbbp7zC3Dft87VKc1Vs42clzmeWl0J9PoY695+S0gKasRHC8fSu10LQ 9aWVRNIi6E72AM9Cmdb62FmChYkwfEnlBE+vx9VY41DyeqlS/4rFFneeVK5gqa5x5bU3 lDpzUDu7harOHX6cKZdcjx4GO4DnBoUevo4foDdmib+ydiAD91/r3fbCwkSTXyi0VXxx m/Mg== 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; bh=T1w8lryY/HgFG5Qx/hgENtAbbsDmjbDpoN+U69ezs58=; fh=aBoaxu93HxG7ysMxnijxLQ6CJ01wbttaC5Gsqeeh3/Y=; b=shpT7Eh847V5qo7BAxr8kPuluWkbAJj3YPB5VZ705G4nOfjHZTcETdekumtYjN6OVc sclej4gQWt1IB/B4ZpZC17BPFoXy0Q46tejbSFfFixcdym4Jwh5N2GPAL6LcbQX7wMm3 TU0Lk6mvtp9AslCl50PDxq7CHoUsxeLhOyAB4Q5s+6pmVoS2Z/ydSLaAo7/lNyPmcLNO liYeYPyIvd4mVM1u98s4lMks4B0IcHnK1qMNI39FcW8UN4ZvtNgUDQiyIb8od2IZiTKk DwYXud4oCw/SekGOodMvChrNO+QYbf8XsgpBz65NmFH+FdJhmMCViQWGv9NfIeBbK5l1 Cv/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-106895-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106895-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k13-20020a17090627cd00b00a469d202050si3014184ejc.79.2024.03.18.18.42.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 18:42:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106895-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-106895-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106895-linux.lists.archive=gmail.com@vger.kernel.org" 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 8896F1F21A47 for ; Tue, 19 Mar 2024 01:42:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28D4E64CC8; Tue, 19 Mar 2024 01:42:39 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FDBA1E504; Tue, 19 Mar 2024 01:42:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710812558; cv=none; b=qofnPdeAjo/7A+a70+irUQ+K/oHeN+PYQgtTzzO3d1hT/SBxKQh1Le7IzewgRtmIPi4IFFZ8oe0sbSpH1NuQqvjL2u5Fed9pJuvqOPndE1KgkxatEsgkU6oe6I9VqXEYQE+lviM0F7B1cxMnfY0lzZlGwgIO1NM5yVCylE2fGWI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710812558; c=relaxed/simple; bh=xzsYvNWKhVY6etQtKChX5/0UdHVuT/bqKtxzfd7W/98=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=MvFHaMUnTMw2R+uVIPRMsRH0RJ5betD2aZ4c6RoLQ1CspwqcJkgom3johrcqzpgmc3lkicOZILiKvsizMMyehKaznYD1BbdZw0sVZ1lzmqOfsSzObgYPJOeXAIgayZei6CBsn8Qmxzi4InXsRfm7xapy7J+FsxgQ6t3YT9CNCrQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: 7ab02576484b4260883ce4e6914adae5-20240319 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:228200b1-ea71-40c3-af52-feef24af35c6,IP:20, URL:0,TC:0,Content:0,EDM:0,RT:0,SF:-5,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:15 X-CID-INFO: VERSION:1.1.37,REQID:228200b1-ea71-40c3-af52-feef24af35c6,IP:20,UR L:0,TC:0,Content:0,EDM:0,RT:0,SF:-5,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:15 X-CID-META: VersionHash:6f543d0,CLOUDID:c43d2785-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:240319094226CXQRFDBC,BulkQuantity:0,Recheck:0,SF:66|38|24|72|19|44|1 02,TC:nil,Content:0,EDM:-3,IP:-2,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC :nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: 7ab02576484b4260883ce4e6914adae5-20240319 Received: from node2.com.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 1617078796; Tue, 19 Mar 2024 09:42:24 +0800 Received: from node2.com.cn (localhost [127.0.0.1]) by node2.com.cn (NSMail) with SMTP id 2FD0AB807587; Tue, 19 Mar 2024 09:42:24 +0800 (CST) X-ns-mid: postfix-65F8ED80-1244201 Received: from localhost.localdomain (unknown [10.42.12.106]) by node2.com.cn (NSMail) with ESMTPA id 42343B807587; Tue, 19 Mar 2024 01:42:22 +0000 (UTC) From: Yufeng Wang To: Denis Efremov , Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Yufeng Wang Subject: [PATCH v2] floppy: remove duplicated code in redo_fd_request() Date: Tue, 19 Mar 2024 09:42:19 +0800 Message-Id: <20240319014219.7812-1-wangyufeng@kylinos.cn> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable duplicated code in redo_fd_request(), unlock_fdc() function has the same code "do_floppy =3D NULL" inside. Signed-off-by: Yufeng Wang Suggested-by: Denis Efremov --- v2: The commit title is too long, update a new short commit title. --- drivers/block/floppy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 1b399ec8c07d..25c9d85667f1 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c @@ -2787,7 +2787,6 @@ static void redo_fd_request(void) pending =3D set_next_request(); spin_unlock_irq(&floppy_lock); if (!pending) { - do_floppy =3D NULL; unlock_fdc(); return; } --=20 2.34.1