OSDN Git Service

r8152: Use guard clause and fix comment typos
authorPrashant Malani <pmalani@chromium.org>
Mon, 30 Sep 2019 19:38:18 +0000 (12:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2019 01:28:47 +0000 (21:28 -0400)
commitc01ebd6c46980654220f6d2b660308a074ee29df
treea7588f3ebc317020fff973953cb03542025d6029
parenta786ab36ae6f486d59e05cd5570319508d23477e
r8152: Use guard clause and fix comment typos

Use a guard clause in tx_bottom() to reduce the indentation of the
do-while loop.

Also, fix a couple of spelling and grammatical mistakes in the
r8152_csum_workaround() function comment.

Change-Id: I460befde150ad92248fd85b0f189ec2df2ab8431
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Grant Grundler <grundler@chromium.org>
Acked-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c