File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ static void m_can_clean(struct net_device *net)
486
486
struct m_can_classdev * cdev = netdev_priv (net );
487
487
488
488
if (cdev -> tx_skb ) {
489
- int putidx = 0 ;
489
+ u32 putidx = 0 ;
490
490
491
491
net -> stats .tx_errors ++ ;
492
492
if (cdev -> version > 30 )
@@ -1695,12 +1695,12 @@ static int m_can_close(struct net_device *dev)
1695
1695
return 0 ;
1696
1696
}
1697
1697
1698
- static int m_can_next_echo_skb_occupied (struct net_device * dev , int putidx )
1698
+ static int m_can_next_echo_skb_occupied (struct net_device * dev , u32 putidx )
1699
1699
{
1700
1700
struct m_can_classdev * cdev = netdev_priv (dev );
1701
1701
/*get wrap around for loopback skb index */
1702
1702
unsigned int wrap = cdev -> can .echo_skb_max ;
1703
- int next_idx ;
1703
+ u32 next_idx ;
1704
1704
1705
1705
/* calculate next index */
1706
1706
next_idx = (++ putidx >= wrap ? 0 : putidx );
@@ -1719,7 +1719,7 @@ static netdev_tx_t m_can_tx_handler(struct m_can_classdev *cdev)
1719
1719
u32 cccr , fdflags ;
1720
1720
u32 txfqs ;
1721
1721
int err ;
1722
- int putidx ;
1722
+ u32 putidx ;
1723
1723
1724
1724
cdev -> tx_skb = NULL ;
1725
1725
You can’t perform that action at this time.
0 commit comments