generic: copy backport, hack, pending patch and config from 6.1 to 6.6
[openwrt/staging/wigyori.git] / target / linux / generic / backport-6.6 / 709-v6.8-01-net-phy-at803x-remove-extra-space-after-cast.patch
1 From fc9d7264ddc32eaa647d6bfcdc25cdf9f786fde0 Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Mon, 18 Dec 2023 00:27:39 +0100
4 Subject: [PATCH 1/2] net: phy: at803x: remove extra space after cast
5
6 Remove extra space after cast as reported by checkpatch to keep code
7 clean.
8
9 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
10 Reviewed-by: Andrew Lunn <andrew@lunn.ch>
11 Link: https://lore.kernel.org/r/20231217232739.27065-1-ansuelsmth@gmail.com
12 Signed-off-by: Paolo Abeni <pabeni@redhat.com>
13 ---
14 drivers/net/phy/at803x.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 --- a/drivers/net/phy/at803x.c
18 +++ b/drivers/net/phy/at803x.c
19 @@ -462,7 +462,7 @@ static int at803x_set_wol(struct phy_dev
20 if (!ndev)
21 return -ENODEV;
22
23 - mac = (const u8 *) ndev->dev_addr;
24 + mac = (const u8 *)ndev->dev_addr;
25
26 if (!is_valid_ether_addr(mac))
27 return -EINVAL;