From patchwork Mon Mar 18 06:04:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yufeng Wang X-Patchwork-Id: 13595026 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 209132206B; Mon, 18 Mar 2024 06:05:24 +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=1710741929; cv=none; b=eB7J5AWye0JqATVQ6+3SgMbvN12+OAw/teN8qYxLK6kMwSTKRQOeJ2WJr8UL+Xnxl0xe37tY8LqQooRpU46uU++AAWUexuY6+VkgUsXt1Sw1WPvHpLJMPQjgOD/xG8Vl+UDkvDJ758w/mPwrmrafq4mnVLeLgSetfojfP0KiM7c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710741929; c=relaxed/simple; bh=HidclDyKzwRkwWfUSuUAQNcNN6rOoKPyRcPubwTEddg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Z5sxISjOiGbPfMaPSGMcZawYfHc0H8YsB3pv+pjICFzEOy/ZD7q4I3FgtFNE9xVxOIXfO5I21UwohtdEhoPwXFJTHiIzVy11JrUDSnf5Pbkw2NRq4WVWCF1tmTtMETKih+ep598EBz7gtJQ8AJzkR9lFuoxs8PuRzhVbpScOQDU= 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: a38ebde312554d5890d39e357e7de918-20240318 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:dead8b5e-c756-42c6-829e-58e4ea24d9db,IP:20, URL:0,TC:0,Content:-5,EDM:-30,RT:0,SF:-5,FILE:0,BULK:0,RULE:Release_Ham,AC TION:release,TS:-20 X-CID-INFO: VERSION:1.1.37,REQID:dead8b5e-c756-42c6-829e-58e4ea24d9db,IP:20,UR L:0,TC:0,Content:-5,EDM:-30,RT:0,SF:-5,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:-20 X-CID-META: VersionHash:6f543d0,CLOUDID:15991e85-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:240318140518DUIROKMZ,BulkQuantity:0,Recheck:0,SF:24|72|19|44|66|38|1 02,TC:nil,Content:0,EDM:2,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: a38ebde312554d5890d39e357e7de918-20240318 Received: from node2.com.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 553459260; Mon, 18 Mar 2024 14:05:14 +0800 Received: from node2.com.cn (localhost [127.0.0.1]) by node2.com.cn (NSMail) with SMTP id A0152B807587; Mon, 18 Mar 2024 14:05:14 +0800 (CST) X-ns-mid: postfix-65F7D99A-478254100 Received: from localhost.localdomain (unknown [10.42.12.106]) by node2.com.cn (NSMail) with ESMTPA id C1C01B807587; Mon, 18 Mar 2024 06:05:13 +0000 (UTC) From: Yufeng Wang To: Denis Efremov , Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: inux-kernel@vger.kernel.org, Yufeng Wang , stable@vger.kernel.org Subject: [PATCH] floppy: remove duplicated code, unlock_fdc() function has the same code "do_floppy = NULL" inside. Date: Mon, 18 Mar 2024 14:04:53 +0800 Message-Id: <20240318060453.18538-1-wangyufeng@kylinos.cn> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Cc: stable@vger.kernel.org Signed-off-by: Yufeng Wang --- 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 = set_next_request(); spin_unlock_irq(&floppy_lock); if (!pending) { - do_floppy = NULL; unlock_fdc(); return; }