mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-08 13:42:10 -05:00
realtek: Keep return statements on new line
It is not allowed in the Linux kernel to have the condition and the actual statement(s) on the same line. This is required to make it easier to identify the body of an if/do/while/for/.. Signed-off-by: Sven Eckelmann <sven@narfation.org> Link: https://github.com/openwrt/openwrt/pull/20906 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
281c90cb1b
commit
20fd6c9d10
@ -2141,7 +2141,8 @@ static int rtl83xx_vlan_add(struct dsa_switch *ds, int port,
|
||||
__func__, port, vlan->vid, vlan->flags);
|
||||
|
||||
/* Let no one mess with our special VLAN 0 */
|
||||
if (!vlan->vid) return 0;
|
||||
if (!vlan->vid)
|
||||
return 0;
|
||||
|
||||
if (vlan->vid > 4095) {
|
||||
dev_err(priv->dev, "VLAN out of range: %d", vlan->vid);
|
||||
@ -2212,7 +2213,8 @@ static int rtl83xx_vlan_del(struct dsa_switch *ds, int port,
|
||||
__func__, port, vlan->vid, vlan->flags);
|
||||
|
||||
/* Let no one mess with our special VLAN 0 */
|
||||
if (!vlan->vid) return 0;
|
||||
if (!vlan->vid)
|
||||
return 0;
|
||||
|
||||
if (vlan->vid > 4095) {
|
||||
dev_err(priv->dev, "VLAN out of range: %d", vlan->vid);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user