]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58a1ac84445c23e04202561d6c781c069f8a8d0f
treea7588f3ebc317020fff973953cb03542025d6029
parent5eba2f71a8ba43b9fa2a525f649d70bcb12f0cf4
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