Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 179666
b: refs/heads/master
c: c14973f
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov authored and Len Brown committed Jan 16, 2010
1 parent 9cb4834 commit 86a92d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 7a0b73a49ab56fb1e836675c00d6d0d2ba39a714
refs/heads/master: c14973f93027500301fc40333e16ae49e58923a7
9 changes: 6 additions & 3 deletions trunk/drivers/platform/x86/sony-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1201,9 +1201,12 @@ static void sony_nc_rfkill_setup(struct acpi_device *device)
/* the buffer is filled with magic numbers describing the devices
* available, 0xff terminates the enumeration
*/
while ((dev_code = *(device_enum->buffer.pointer + i)) != 0xff &&
i < device_enum->buffer.length) {
i++;
for (i = 0; i < device_enum->buffer.length; i++) {

dev_code = *(device_enum->buffer.pointer + i);
if (dev_code == 0xff)
break;

dprintk("Radio devices, looking at 0x%.2x\n", dev_code);

if (dev_code == 0 && !sony_rfkill_devices[SONY_WIFI])
Expand Down

0 comments on commit 86a92d9

Please sign in to comment.