mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
Remove some nonfunctional logic that also generates warnings
This commit is contained in:
@@ -3767,12 +3767,6 @@ static void sam_sw_setup(struct sam_usbdev_s *priv)
|
||||
|
||||
priv->eplist[epno].ep.maxpacket = SAM_UDP_MAXPACKETSIZE(epno);
|
||||
}
|
||||
|
||||
/* Select a smaller endpoint size for EP0 */
|
||||
|
||||
#if SAM_EP0MAXPACKET < SAM_MAXPACKET_SIZE
|
||||
priv->eplist[EP0].ep.maxpacket = SAM_EP0MAXPACKET;
|
||||
#endif
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user