All of lore.kernel.org
 help / color / mirror / Atom feed
* [usb:usb-next 25/32] drivers/usb/serial/omninet.c:165:6: warning: unused variable 'i'
@ 2012-09-18 14:04 Fengguang Wu
  2012-09-18 14:28 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Fengguang Wu @ 2012-09-18 14:04 UTC (permalink / raw)
  To: kernel-janitors

Hi Greg,

FYI, there are new compile warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next
head:   07764958947c381ef095fc69503c1ef1775f316e
commit: 6e03b8cecbd836f729afe1a50814544baa5e5f97 [25/32] USB: Serial: omninet.c: remove debug module parameter
config: x86_64-allmodconfig

All error/warnings:

drivers/usb/serial/omninet.c: In function 'omninet_read_bulk_callback':
drivers/usb/serial/omninet.c:165:6: warning: unused variable 'i' [-Wunused-variable]

vim +165 drivers/usb/serial/omninet.c
   155	#define OMNINET_HEADERLEN	sizeof(struct omninet_header)
   156	#define OMNINET_BULKOUTSIZE 	(64 - OMNINET_HEADERLEN)
   157	
   158	static void omninet_read_bulk_callback(struct urb *urb)
   159	{
   160		struct usb_serial_port 	*port 	= urb->context;
   161		unsigned char 		*data 	= urb->transfer_buffer;
   162		struct omninet_header 	*header = (struct omninet_header *) &data[0];
   163		int status = urb->status;
   164		int result;
 > 165		int i;
   166	
   167		if (status) {
   168			dev_dbg(&port->dev, "%s - nonzero read bulk status received: %d\n",
   169				__func__, status);
   170			return;
   171		}
   172	
   173		if (urb->actual_length && header->oh_len) {
   174			struct tty_struct *tty = tty_port_tty_get(&port->port);
   175			if (tty) {

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu, Yuanhan Liu                              Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-18 14:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-18 14:04 [usb:usb-next 25/32] drivers/usb/serial/omninet.c:165:6: warning: unused variable 'i' Fengguang Wu
2012-09-18 14:28 ` Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.