Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp26022lqt; Sun, 17 Mar 2024 23:06:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIUTBRgqUdd/QIakn/UgpDSyY6s11fqnfcTE2WnSUktm/WYja/SvgK77jAWoYei2Kehw53PmY0Lip1v2glzxfrtfjG0eyazGFkeqivnw== X-Google-Smtp-Source: AGHT+IHPUKZQO0I59pEm6LQHs4ySRGjOJySqmq6glBHppuBN6R48hyQDQpVby8gyEQHY0c2wdyg4 X-Received: by 2002:a05:622a:178d:b0:42e:f3bc:9d9b with SMTP id s13-20020a05622a178d00b0042ef3bc9d9bmr14525252qtk.9.1710742000251; Sun, 17 Mar 2024 23:06:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710742000; cv=pass; d=google.com; s=arc-20160816; b=lxHLeUAH5kHaAPa7+Dyd8I1UTZbuxah7Wv/+ogF+nQko4gX55qnOTqrtN+sa4YSVGA ydQ1UvWEhAyYxTzP8idjpfGtFnThm4zgAMpxoQWoVX4vzuCcmBqyKVOMUhlazIRt2JrK Jxe2GdC+QCd0MXLXCChkH7AoBqp2XGmgAogGiGzftp+RwK+j9yqdPTGlKFv2bIwjOwcB JAxUgCghYIc+yiNwxXDPWteKrSUNuFYFIyfFhU5hSP9BAQ819wWpyUnWySET5TbYB/pQ 3R26cvhD6ViQbWbhkraWlhx5H6V9xBBWBdKqq7pyBnspzHEmM0pSxE6HDRAeeVChe1b7 n2Yg== 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=TAqvSJKVaSCZx/6P0rZt9g66tEWpsFkrdyflWRkwQqk=; fh=su4kzwePZHafl5CHCAmJ3dkffbJcvDfS9Ag2PdPWQtk=; b=ruyYKY8EUCjsiNMcouHMxJSoedhQj951Ig4obywSx+XV6ON8xO/pSx3fE8F+8exsLa NJv/QBRZOUyFBryfC9j/KTt2bd3xhhjw098u4Tjd56+O7cTYJJDGn2YKBx1wHkiut9hk N/8DVj4SEwHvPdviSE6dq7RpAamFkvm+J/VjUYv274pWgB/BNPbhIyf05qxsaLPRbvcC /9opFE9g9M4WT71pL+/CTE3eAdghYPaJwbKeUWLWG/v5wIvVLAKOtJ7NhWfPkFrKKAdq OuoF3MMO7FRKFyQWavcf5n4sepNsFDWUM+ETTgFhBqfODgl/FLn0pCRqMGrkXJ5Uj7xG 3rsg==; 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-105728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105728-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id k14-20020a05622a03ce00b0042ec0777b8fsi8670019qtx.145.2024.03.17.23.06.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 23:06:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-105728-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105728-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F1D241C20DED for ; Mon, 18 Mar 2024 06:06:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0422122EEB; Mon, 18 Mar 2024 06:05:30 +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 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 =3D set_next_request(); spin_unlock_irq(&floppy_lock); if (!pending) { - do_floppy =3D NULL; unlock_fdc(); return; } --=20 2.34.1