Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41322
b: refs/heads/master
c: 54ecf1f
h: refs/heads/master
v: v3
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 2dd1fc9 commit 1bbc9f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8bb22d2bdaac415965e7be1af8da2b8f3ee35f31
refs/heads/master: 54ecf1fba683f779a1b36abed9c843decafc7d5b
16 changes: 8 additions & 8 deletions trunk/drivers/usb/misc/idmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ static DEFINE_MUTEX(disconnect_mutex);

static int idmouse_create_image(struct usb_idmouse *dev)
{
int bytes_read = 0;
int bulk_read = 0;
int result = 0;
int bytes_read;
int bulk_read;
int result;

memcpy(dev->bulk_in_buffer, HEADER, sizeof(HEADER)-1);
bytes_read += sizeof(HEADER)-1;
bytes_read = sizeof(HEADER)-1;

/* reset the device and set a fast blink rate */
result = ftip_command(dev, FTIP_RELEASE, 0, 0);
Expand Down Expand Up @@ -208,9 +208,9 @@ static inline void idmouse_delete(struct usb_idmouse *dev)

static int idmouse_open(struct inode *inode, struct file *file)
{
struct usb_idmouse *dev = NULL;
struct usb_idmouse *dev;
struct usb_interface *interface;
int result = 0;
int result;

/* prevent disconnects */
mutex_lock(&disconnect_mutex);
Expand Down Expand Up @@ -305,7 +305,7 @@ static ssize_t idmouse_read(struct file *file, char __user *buffer, size_t count
loff_t * ppos)
{
struct usb_idmouse *dev;
int result = 0;
int result;

dev = (struct usb_idmouse *) file->private_data;

Expand All @@ -329,7 +329,7 @@ static int idmouse_probe(struct usb_interface *interface,
const struct usb_device_id *id)
{
struct usb_device *udev = interface_to_usbdev(interface);
struct usb_idmouse *dev = NULL;
struct usb_idmouse *dev;
struct usb_host_interface *iface_desc;
struct usb_endpoint_descriptor *endpoint;
int result;
Expand Down

0 comments on commit 1bbc9f9

Please sign in to comment.