Message ID | 20240222112723.18428-3-straube.linux@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-76408-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp186467dyb; Thu, 22 Feb 2024 03:29:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXwNsokPXTptloE+9xOkzdKegLh+8gJUz+xaMszRi0iqls4netE21ZBu8G+n02xouhadrZT0ReTJG7tcTXOVQdXA2a9wA== X-Google-Smtp-Source: AGHT+IFblDt8c19p3WrEIl5xFZds98A/ceruOHGqlM7WiXtVZ1uzQH4ZQfQZ8RowioPyUvHsslJf X-Received: by 2002:a17:906:793:b0:a3f:2703:1c6a with SMTP id l19-20020a170906079300b00a3f27031c6amr3789321ejc.51.1708601350892; Thu, 22 Feb 2024 03:29:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708601350; cv=pass; d=google.com; s=arc-20160816; b=vVpeJe7n9cpPXLI8uAJz8Um9znqp08yYigEf4Kmwiga2qDrod0HMPGF1DU15UzrRAV W1D5h/97gHwZsrVppoX+D8/0zqnsLdNqxTjXvK851rKorU+OF5O+TNpNrYKe1t7NbI9t nOXM+Icq3TaTTpWS+l36hVsoIa3emrWKSEKiujkMzc5XAjQwAGMvLwrDMtdn4C8FKAw3 6cgGQ6rIsKK0oMtcoTKYpc0NPTSz5TKtnaZM5+Y0c8CisZnSFLmcd6WUJmIqlZ6Q7Ynq IbaRHgGuZX6eA+2MCD7eOf0vimtpqeBKYGRA6SXO76pJQgkWwMkzsIfz/Dx/OSd4K8Qg bzGA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=X1yfiraC5quW41p8ykFc76HAZ3CK1+m5zIrpNUz/QnU=; fh=jLiSRW1p21pt0NMO+9EiGqimLljGF19SbYmbCYodar0=; b=gOWk8bv0MK/Vw+TcpkBs77nlfCpnwVty5cpbTtOkJ5v6YMxrD5bqAUmDsGjhg1qS0/ CQXolOKeqtQ3q5iZZj7EobCVPlyyiGC1waMgrfetM/+n9hlHUw4DbvUe8VEIZB2gzOFz Dy/xUHuBeGv2gHYKGeaNyqOJsJNnf8qJ0khyb9TY1FaMHa9BawmT5rCx256bIbYzLU0Y b0E+p5PsOZrw2NKCZpbzgOcnOXgYO/9FjXEbX7wsG20DPbDr6mXzivFwNHKbZn2pbfgm NQenzb34Pvhh1lsz2apF8vjTWXW4dNO8OlyCChr8wdKWBx+JIKgvUnbERGzmYfuGP3/c McJA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=eWMvq4Hq; 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-76408-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76408-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m10-20020a17090607ca00b00a3ec892acf9si2953267ejc.743.2024.02.22.03.29.10 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 03:29:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76408-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=eWMvq4Hq; 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-76408-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76408-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 4A8291F23A2D for <ouuuleilei@gmail.com>; Thu, 22 Feb 2024 11:29:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5BB0E482DA; Thu, 22 Feb 2024 11:27:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eWMvq4Hq" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (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 0755D45BE7 for <linux-kernel@vger.kernel.org>; Thu, 22 Feb 2024 11:27:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708601272; cv=none; b=VDkmiH6gtxeY35moASmlRXwyZ+pPH6VhiCg3/vYwA6+EFWMdgpzhFtBQ2lHK3CcdqwCGJcnVOyLgiaMuqgLlFcH7D5ks3Ok38W16EvnwKUaHXRLjJ81Di9intt3HRKr+yGUG+8SefK3PuIQCF5u3iW2LrIY/I7UuMF/i4UuH4s4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708601272; c=relaxed/simple; bh=s1HPqz0qh7gqcih0FvEIaSC2XVzpCndQCg9E2w4lGCo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QboJrtb5IGFKOwqj0nk7UgHeao+fqUnSZihEY87l5OTKQQ3xMRi3zL0QFVhCBkzlmxSb8WgOvSJc3WjiuLdcjbClqHW+6ZYWRwr+d2EffWxEXNafkQiEzhAUGalY7N07QR0YCYwvkAgqz/I7XlGb4aH/Lu/Bdgt6UcDafq/q+kI= 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=eWMvq4Hq; arc=none smtp.client-ip=209.85.167.42 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-lf1-f42.google.com with SMTP id 2adb3069b0e04-512bb2ed1f7so5452607e87.3 for <linux-kernel@vger.kernel.org>; Thu, 22 Feb 2024 03:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708601269; x=1709206069; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=X1yfiraC5quW41p8ykFc76HAZ3CK1+m5zIrpNUz/QnU=; b=eWMvq4Hq9jTDVsEXVaZ3iki5TNRWMaQvgwqR0V5NUx4cjG9VwDNb38PigMuXCQYiWR qJyiUUWAnuVKvYpT4qNb1hBUTJt2tOQdbg4xFd+EOrKs7ZtGiB2U4wU8vJPiySOtTO7D 87YNi1EoxV+yPnSNbUWTsvg5eFL+lwfQmn4e9FiUOSO2TXIh7DFje9SsVntpbS9xi3G6 19si0s8XrbjWZ5gsHWfi3elXfHJ0cpYrntVSWo4U69QXP1wOeEouFkP+HBi8AIvcCFW/ iEQ9VP+B3F3OYlOh6FgDGdC8pgCYH+v6qsQAUZ9NRX8OsLRF6NVHSjdKllx5zIWNoHiI CKaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708601269; x=1709206069; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X1yfiraC5quW41p8ykFc76HAZ3CK1+m5zIrpNUz/QnU=; b=uFhxTx/wsix6GHbtG7f7jw2ksgeUT1k1XPaq8h1uXf8qW04q1BGK5XuZaKYotHb0p9 qkWUwUG/giRXkkcbEnOyRJVqJIEbGYWTLCRMpS7zxuGsCMRtfFAF/F7j8pg4QW3Jyf/j aJARv3Hq1j9pgCstEUKERi9DleELmna7Z85XIJOxLkKqfNgVnGBf+VvBd3LjBTHmlLDy wf673FCrKZ6THAceuqmhsZY0vmD//SP+MdzGsPtTY7Nm+5tHZdpQxOe2toM1saW+MnWd P8b5pOQLYPAFoK59xpvmiGPS/Q9s/wfLxBS7uttkRRggQjucxOVi7+MWw/6KXs5aMx2U uahA== X-Forwarded-Encrypted: i=1; AJvYcCUHjUA0V+tMVTfk5BJFpbMfxlCipqnkG/p8cVvZ+uy3OtWGT++ElFvSxQATdl5vW9qrjadpcFNmjkZEuL/PnGmlOgpzeMsDUvAbLy0V X-Gm-Message-State: AOJu0Yz+zqaQSfnwMCww1BUe6ABlaDCr4JUZbJcIGnaonfQElnKalN8n xBzx5TxHA4re1dVl0Fjz8iFVT4BrF2dXDrQqXXYfQ5kBfSOH4nU9 X-Received: by 2002:ac2:5191:0:b0:512:ab73:d2d4 with SMTP id u17-20020ac25191000000b00512ab73d2d4mr7478165lfi.16.1708601268844; Thu, 22 Feb 2024 03:27:48 -0800 (PST) Received: from localhost.localdomain ([95.90.186.51]) by smtp.gmail.com with ESMTPSA id ck8-20020a0564021c0800b0056452477a5esm4338524edb.24.2024.02.22.03.27.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 03:27:48 -0800 (PST) From: Michael Straube <straube.linux@gmail.com> To: gregkh@linuxfoundation.org Cc: philipp.g.hortmann@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube <straube.linux@gmail.com> Subject: [PATCH 2/3] staging: rtl8192e: remove empty cases from switch statements Date: Thu, 22 Feb 2024 12:27:22 +0100 Message-ID: <20240222112723.18428-3-straube.linux@gmail.com> X-Mailer: git-send-email 2.43.1 In-Reply-To: <20240222112723.18428-1-straube.linux@gmail.com> References: <20240222112723.18428-1-straube.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791598369999299753 X-GMAIL-MSGID: 1791598369999299753 |
Series |
staging: rtl8192e: coding style cleanups
|
|
Commit Message
Michael Straube
Feb. 22, 2024, 11:27 a.m. UTC
Rmove empty cases from switch statements to improve readability.
All of these empty cases are covered by a default case already.
Signed-off-by: Michael Straube <straube.linux@gmail.com>
---
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c index 57e1a361a7c9..4b622ad4c534 100644 --- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +++ b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c @@ -1725,7 +1725,6 @@ static void _rtl92e_dm_check_fsync(struct net_device *dev) _rtl92e_dm_start_hw_fsync(dev); priv->rtllib->fsync_state = HW_Fsync; break; - case HW_Fsync: default: break; } @@ -1740,7 +1739,6 @@ static void _rtl92e_dm_check_fsync(struct net_device *dev) _rtl92e_dm_start_sw_fsync(dev); priv->rtllib->fsync_state = SW_Fsync; break; - case SW_Fsync: default: break; } @@ -1760,7 +1758,6 @@ static void _rtl92e_dm_check_fsync(struct net_device *dev) _rtl92e_dm_end_sw_fsync(dev); priv->rtllib->fsync_state = Default_Fsync; break; - case Default_Fsync: default: break; }