diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpi_support/acpi_toshiba.c | 8 | ||||
-rw-r--r-- | sys/dev/bktr/bktr_core.c | 2 | ||||
-rw-r--r-- | sys/dev/drm/mach64_dma.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/acpi_support/acpi_toshiba.c b/sys/dev/acpi_support/acpi_toshiba.c index 8ceb76b..8d5a9ce 100644 --- a/sys/dev/acpi_support/acpi_toshiba.c +++ b/sys/dev/acpi_support/acpi_toshiba.c @@ -324,7 +324,7 @@ hci_force_fan(ACPI_HANDLE h, int op, UINT32 *state) ACPI_SERIAL_ASSERT(toshiba); if (op == HCI_SET) { - if (*state > 1) + if (*state > 1) return (EINVAL); *state <<= HCI_FAN_SHIFT; } @@ -368,7 +368,7 @@ hci_lcd_brightness(ACPI_HANDLE h, int op, UINT32 *brightness) ACPI_SERIAL_ASSERT(toshiba); if (op == HCI_SET) { - if (*brightness > HCI_LCD_BRIGHTNESS_MAX) + if (*brightness > HCI_LCD_BRIGHTNESS_MAX) return (EINVAL); *brightness <<= HCI_LCD_BRIGHTNESS_SHIFT; } @@ -384,7 +384,7 @@ hci_lcd_backlight(ACPI_HANDLE h, int op, UINT32 *backlight) ACPI_SERIAL_ASSERT(toshiba); if (op == HCI_SET) { - if (*backlight > 1) + if (*backlight > 1) return (EINVAL); } return (hci_call(h, op, HCI_REG_LCD_BACKLIGHT, backlight)); @@ -397,7 +397,7 @@ hci_cpu_speed(ACPI_HANDLE h, int op, UINT32 *speed) ACPI_SERIAL_ASSERT(toshiba); if (op == HCI_SET) { - if (*speed > HCI_CPU_SPEED_MAX) + if (*speed > HCI_CPU_SPEED_MAX) return (EINVAL); *speed <<= HCI_CPU_SPEED_SHIFT; } diff --git a/sys/dev/bktr/bktr_core.c b/sys/dev/bktr/bktr_core.c index 192b37d..bc5bdcf 100644 --- a/sys/dev/bktr/bktr_core.c +++ b/sys/dev/bktr/bktr_core.c @@ -1936,7 +1936,7 @@ int tuner_ioctl( bktr_ptr_t bktr, int unit, ioctl_cmd_t cmd, caddr_t arg, struct thread* td ) { int tmp_int; - int temp, temp1; + int temp, temp1; int offset; int count; u_char *buf; diff --git a/sys/dev/drm/mach64_dma.c b/sys/dev/drm/mach64_dma.c index 727ba1a..7b7fa9a 100644 --- a/sys/dev/drm/mach64_dma.c +++ b/sys/dev/drm/mach64_dma.c @@ -512,7 +512,7 @@ void mach64_dump_ring_info(drm_mach64_private_t *dev_priv) DRM_INFO("\n"); - if (ring->head < ring->size / sizeof(u32)) { + if (ring->head < ring->size / sizeof(u32)) { struct list_head *ptr; u32 addr = le32_to_cpu(((u32 *) ring->start)[ring->head + 1]); @@ -1276,7 +1276,7 @@ int mach64_do_dispatch_pseudo_dma(drm_mach64_private_t *dev_priv) entry = list_entry(ptr, drm_mach64_freelist_t, list); buf = entry->buf; offset = buf_addr - GETBUFADDR(buf); - if (offset < MACH64_BUFFER_SIZE) { + if (offset < MACH64_BUFFER_SIZE) { found = 1; break; } |