Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289163
b: refs/heads/master
c: 4804918
h: refs/heads/master
i:
  289161: 6398c9c
  289159: 365b44e
v: v3
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Feb 29, 2012
1 parent a113893 commit 669195d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 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: 1ca7e782864222bcdbe305e543df25df4e343963
refs/heads/master: 480491889f684662a95234f2205ed4d70afe7a10
19 changes: 8 additions & 11 deletions trunk/drivers/staging/asus_oled/asus_oled.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ static void setup_packet_header(struct asus_oled_packet *packet, char flags,

static void enable_oled(struct asus_oled_dev *odev, uint8_t enabl)
{
int a;
int retval;
int act_len;
struct asus_oled_packet *packet;
Expand All @@ -178,17 +177,15 @@ static void enable_oled(struct asus_oled_dev *odev, uint8_t enabl)
else
packet->bitmap[0] = 0xae;

for (a = 0; a < 1; a++) {
retval = usb_bulk_msg(odev->udev,
usb_sndbulkpipe(odev->udev, 2),
packet,
sizeof(struct asus_oled_header) + 1,
&act_len,
-1);
retval = usb_bulk_msg(odev->udev,
usb_sndbulkpipe(odev->udev, 2),
packet,
sizeof(struct asus_oled_header) + 1,
&act_len,
-1);

if (retval)
dev_dbg(&odev->udev->dev, "retval = %d\n", retval);
}
if (retval)
dev_dbg(&odev->udev->dev, "retval = %d\n", retval);

odev->enabled = enabl;

Expand Down

0 comments on commit 669195d

Please sign in to comment.