Re: [PATCH net-next 7/8] net: hdlc_ppp: remove redundant spaces

From: lipeng (Y)
Date: Wed Jun 16 2021 - 21:05:16 EST



在 2021/6/17 0:23, Andrew Lunn 写道:
On Wed, Jun 16, 2021 at 05:33:56PM +0800, Guangbin Huang wrote:
From: Peng Li <lipeng321@xxxxxxxxxx>

According to the chackpatch.pl,
no spaces is necessary at the start of a line.

Signed-off-by: Peng Li <lipeng321@xxxxxxxxxx>
Signed-off-by: Guangbin Huang <huangguangbin2@xxxxxxxxxx>
---
drivers/net/wan/hdlc_ppp.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wan/hdlc_ppp.c b/drivers/net/wan/hdlc_ppp.c
index 7b7c02d..53c668e 100644
--- a/drivers/net/wan/hdlc_ppp.c
+++ b/drivers/net/wan/hdlc_ppp.c
@@ -34,8 +34,8 @@
enum {IDX_LCP = 0, IDX_IPCP, IDX_IPV6CP, IDX_COUNT};
enum {CP_CONF_REQ = 1, CP_CONF_ACK, CP_CONF_NAK, CP_CONF_REJ, CP_TERM_REQ,
- CP_TERM_ACK, CP_CODE_REJ, LCP_PROTO_REJ, LCP_ECHO_REQ, LCP_ECHO_REPLY,
- LCP_DISC_REQ, CP_CODES};
+ CP_TERM_ACK, CP_CODE_REJ, LCP_PROTO_REJ, LCP_ECHO_REQ, LCP_ECHO_REPLY,
+ LCP_DISC_REQ, CP_CODES};
Do you think this looks better or worse after the change?

Andrew
.

It is better after the change as the code style follow the same rule.

What's your suggestion?