Skip to content

Commit

Permalink
staging: unisys: fix sparse warnings
Browse files Browse the repository at this point in the history
Sparse generates two warnings related to incorrect type in assignment.
This patch changes the types in the struct defined in unisys

Signed-off-by: Andrea Ghittino <aghittino@gmail.com>
Acked-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Andrea Ghittino authored and Greg Kroah-Hartman committed Mar 7, 2017
1 parent 766ceda commit 5b6d458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/unisys/include/iochannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ struct net_pkt_xmt {
u8 valid; /* 1 = struct is valid - else ignore */
u8 hrawoffv; /* 1 = hwrafoff is valid */
u8 nhrawoffv; /* 1 = nhwrafoff is valid */
u16 protocol; /* specifies packet protocol */
u32 csum; /* value used to set skb->csum at IOPart */
__be16 protocol; /* specifies packet protocol */
__wsum csum; /* value used to set skb->csum at IOPart */
u32 hrawoff; /* value used to set skb->h.raw at IOPart */
/* hrawoff points to the start of the TRANSPORT LAYER HEADER */
u32 nhrawoff; /* value used to set skb->nh.raw at IOPart */
Expand Down

0 comments on commit 5b6d458

Please sign in to comment.