From: Andrew Lunn <andrew@lunn.ch>
To: Ariel Otilibili <ariel.otilibili-anieli@eurecom.fr>
Cc: linux-media@vger.kernel.org, linux-mips@vger.kernel.org,
netdev@vger.kernel.org, linux-can@vger.kernel.org,
Marc Kleine-Budde <mkl@pengutronix.de>,
Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Subject: Re: [PATCH 3/3] net/can/dev: Remove dead code
Date: Sat, 21 Dec 2024 16:20:22 +0100 [thread overview]
Message-ID: <51551c6b-edf1-4c95-82b4-0158864c5d64@lunn.ch> (raw)
In-Reply-To: <20241221035352.1020228-4-ariel.otilibili-anieli@eurecom.fr>
On Sat, Dec 21, 2024 at 04:44:17AM +0100, Ariel Otilibili wrote:
> The default switch case ends with a return; meaning this return is never reached.
Not quite correct. It is the fact that all the case statement,
including the default, make a return, which makes this last return
unreachable.
Andrew
---
pw-bot: cr
next prev parent reply other threads:[~2024-12-21 15:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-21 3:44 [PATCH 0/3] broadcom, ethernet/marvell,cx231xx,can/dev: Remove unused values and dead code Ariel Otilibili
2024-12-21 3:44 ` [PATCH 1/3] drivers/firmware/broadcom, ethernet/marvell: Remove unused values Ariel Otilibili
2024-12-21 15:17 ` Andrew Lunn
2024-12-21 3:44 ` [PATCH 2/3] usb/cx231xx: Remove unused value Ariel Otilibili
2024-12-21 3:44 ` [PATCH 3/3] net/can/dev: Remove dead code Ariel Otilibili
2024-12-21 15:20 ` Andrew Lunn [this message]
2024-12-21 11:06 ` [PATCH v2 0/3] broadcom, ethernet/marvell,cx231xx,can/dev: Remove unused values and " Ariel Otilibili
2024-12-21 11:06 ` [PATCH v2 1/3] drivers/firmware/broadcom, ethernet/marvell: Remove unused values Ariel Otilibili
2024-12-21 11:06 ` [PATCH v2 2/3] usb/cx231xx: Remove unused value Ariel Otilibili
2025-01-06 14:07 ` Hans Verkuil
2024-12-21 11:06 ` [PATCH v2 3/3] net/can/dev: Remove dead code Ariel Otilibili
2024-12-22 16:37 ` Marc Kleine-Budde
2024-12-22 17:27 ` Ariel Otilibili-Anieli
2024-12-21 15:22 ` [PATCH v2 0/3] broadcom, ethernet/marvell,cx231xx,can/dev: Remove unused values and " Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51551c6b-edf1-4c95-82b4-0158864c5d64@lunn.ch \
--to=andrew@lunn.ch \
--cc=ariel.otilibili-anieli@eurecom.fr \
--cc=linux-can@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=mailhol.vincent@wanadoo.fr \
--cc=mkl@pengutronix.de \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox