net: ixp4xx_hss: fix the code style issue about "foo* bar"
authorPeng Li <lipeng321@huawei.com>
Thu, 10 Jun 2021 07:20:00 +0000 (15:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 20:50:42 +0000 (13:50 -0700)
Fix the checkpatch error as "foo* bar" and should be "foo *bar",
and "(foo*)" should be "(foo *)".

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/ixp4xx_hss.c

index 6aa01d548008554b3da41267931c08c4297719c7..48bc914625932403091b72cfe987bc14cb57f8e3 100644 (file)
@@ -332,7 +332,7 @@ static const struct {
  * utility functions
  ****************************************************************************/
 
-static inline struct portdev_to_port(struct net_device *dev)
+static inline struct port *dev_to_port(struct net_device *dev)
 {
        return dev_to_hdlc(dev)->priv;
 }
@@ -351,9 +351,9 @@ static inline void memcpy_swab32(u32 *dest, u32 *src, int cnt)
  * HSS access
  ****************************************************************************/
 
-static void hss_npe_send(struct port *port, struct msg *msg, const charwhat)
+static void hss_npe_send(struct port *port, struct msg *msg, const char *what)
 {
-       u32 *val = (u32*)msg;
+       u32 *val = (u32 *)msg;
 
        if (npe_send_message(port->npe, msg, what)) {
                pr_crit("HSS-%i: unable to send command [%08X:%08X] to %s\n",