Message ID | 20230404053636.51597-3-mika.westerberg@linux.intel.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: thunderbolt: Fix for sparse warnings and typo | expand |
On Tue, Apr 04, 2023 at 08:36:36AM +0300, Mika Westerberg wrote: > Should be UDP not UPD. No functional changes. > > Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Looks good, Reviewed-by: Simon Horman <simon.horman@corigine.com> codespell tells me you also may want to consider: $ codespell drivers/net/thunderbolt/main.c drivers/net/thunderbolt/main.c:151: blongs ==> belongs > --- > drivers/net/thunderbolt/main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/thunderbolt/main.c b/drivers/net/thunderbolt/main.c > index 6a43ced74881..0ce501e34f3f 100644 > --- a/drivers/net/thunderbolt/main.c > +++ b/drivers/net/thunderbolt/main.c > @@ -1030,7 +1030,7 @@ static bool tbnet_xmit_csum_and_map(struct tbnet *net, struct sk_buff *skb, > /* Data points on the beginning of packet. > * Check is the checksum absolute place in the packet. > * ipcso will update IP checksum. > - * tucso will update TCP/UPD checksum. > + * tucso will update TCP/UDP checksum. > */ > if (protocol == htons(ETH_P_IP)) { > __sum16 *ipcso = dest + ((void *)&(ip_hdr(skb)->check) - data); > -- > 2.39.2 >
diff --git a/drivers/net/thunderbolt/main.c b/drivers/net/thunderbolt/main.c index 6a43ced74881..0ce501e34f3f 100644 --- a/drivers/net/thunderbolt/main.c +++ b/drivers/net/thunderbolt/main.c @@ -1030,7 +1030,7 @@ static bool tbnet_xmit_csum_and_map(struct tbnet *net, struct sk_buff *skb, /* Data points on the beginning of packet. * Check is the checksum absolute place in the packet. * ipcso will update IP checksum. - * tucso will update TCP/UPD checksum. + * tucso will update TCP/UDP checksum. */ if (protocol == htons(ETH_P_IP)) { __sum16 *ipcso = dest + ((void *)&(ip_hdr(skb)->check) - data);
Should be UDP not UPD. No functional changes. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> --- drivers/net/thunderbolt/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)