staging: greybus: cleanup long line in gb_uart_probe()
Subsystems (3)
PATCH 1/1 staging: greybus: cleanup long line in gb_uart_probe()
Clear line over 80 characters warning in gb_uart_probe() by adding appropriate lines breaks.
Reported by checkpatch
--- drivers/staging/greybus/uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/greybus/uart.c +2 -2
@@ -829,8 +829,8 @@ static int gb_uart_probe(struct gbphy_device *gbphy_dev,if (!gb_tty)return -ENOMEM ; - connection =gb_connection_create (gbphy_dev->bundle, -le16_to_cpu (gbphy_dev->cport_desc->id), + connection =gb_connection_create (gbphy_dev->bundle,le16_to_cpu + (gbphy_dev->cport_desc->id), gb_uart_request_handler);if (IS_ERR (connection)) { retval =PTR_ERR (connection);
Signature · 6 lines
2.19.1 -- ta ioannis
Quoted 14 lines · Ioannis Valasakis
Clear line over 80 characters warning in
gb_uart_probe()by adding appropriate lines breaks.
Reported by checkpatchSigned-off-by Ioannis Valasakis <[email protected]>--- drivers/staging/greybus/uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/greybus/uart.c +0
-0
drivers/staging/greybus/uart.c static int gb_uart_probe(struct gbphy_device *gbphy_dev, · line 833
Quoted 7 lines
drivers/staging/greybus/uart.c +2
-2@@ -829,8 +829,8 @@ static int gb_uart_probe(struct gbphy_device *gbphy_dev,if (!gb_tty)return -ENOMEM ; - connection = gb_connection_create(gbphy_dev->bundle, - le16_to_cpu(gbphy_dev->cport_desc->id), + connection = gb_connection_create(gbphy_dev->bundle, le16_to_cpu + (gbphy_dev->cport_desc->id),
This really hides the structure of the code. You can just reduce the indentation in front of the call and then line the remaining argument up with that.
julia
Quoted 18 lines
drivers/staging/greybus/uart.c +0
-1gb_uart_request_handler);if (IS_ERR (connection)) { retval =PTR_ERR (connection); --2.19.1
--
ta
ioannis--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20181102232501.GA1571%40kvasir.local.
For more options, visit https://groups.google.com/d/optout.