Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: serial: kobil_sct: drop unnecessary initialisations

Drop unnecessary initialisation of variables that are always assigned
before being used.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>

+2 -4
+2 -4
drivers/usb/serial/kobil_sct.c
··· 178 178 static int kobil_open(struct tty_struct *tty, struct usb_serial_port *port) 179 179 { 180 180 struct device *dev = &port->dev; 181 - int result = 0; 182 181 struct kobil_private *priv; 183 182 unsigned char *transfer_buffer; 184 183 int transfer_buffer_length = 8; 184 + int result; 185 185 186 186 priv = usb_get_serial_port_data(port); 187 187 ··· 272 272 static int kobil_write(struct tty_struct *tty, struct usb_serial_port *port, 273 273 const unsigned char *buf, int count) 274 274 { 275 - int length = 0; 276 - int result = 0; 277 - int todo = 0; 278 275 struct kobil_private *priv; 276 + int length, todo, result; 279 277 280 278 if (count == 0) { 281 279 dev_dbg(&port->dev, "%s - write request of 0 bytes\n", __func__);