Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f0c41dd authored by Jai Krishna's avatar Jai Krishna Committed by Greg Kroah-Hartman
Browse files

usb: usbip:checkpatch; fix bare use of unsigned



This patch fixes the following checkpatch warning for usbip files
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

Signed-off-by: default avatarJai Krishna <rjk1024@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5864f7c1
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -244,7 +244,7 @@ static int vep_enable(struct usb_ep *_ep,
{
{
	struct vep	*ep;
	struct vep	*ep;
	struct vudc	*udc;
	struct vudc	*udc;
	unsigned maxp;
	unsigned int	maxp;
	unsigned long	flags;
	unsigned long	flags;


	ep = to_vep(_ep);
	ep = to_vep(_ep);
+3 −3
Original line number Original line Diff line number Diff line
@@ -73,8 +73,8 @@ static int handle_control_request(struct vudc *udc, struct urb *urb,
{
{
	struct vep	*ep2;
	struct vep	*ep2;
	int		ret_val = 1;
	int		ret_val = 1;
	unsigned	w_index;
	unsigned int	w_index;
	unsigned	w_value;
	unsigned int	w_value;


	w_index = le16_to_cpu(setup->wIndex);
	w_index = le16_to_cpu(setup->wIndex);
	w_value = le16_to_cpu(setup->wValue);
	w_value = le16_to_cpu(setup->wValue);
@@ -200,7 +200,7 @@ static int transfer(struct vudc *udc,
top:
top:
	/* if there's no request queued, the device is NAKing; return */
	/* if there's no request queued, the device is NAKing; return */
	list_for_each_entry(req, &ep->req_queue, req_entry) {
	list_for_each_entry(req, &ep->req_queue, req_entry) {
		unsigned	host_len, dev_len, len;
		unsigned int	host_len, dev_len, len;
		void		*ubuf_pos, *rbuf_pos;
		void		*ubuf_pos, *rbuf_pos;
		int		is_short, to_host;
		int		is_short, to_host;
		int		rescan = 0;
		int		rescan = 0;