Changeset 76d0981d in mainline for uspace/drv


Ignore:
Timestamp:
2018-04-12T12:57:20Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3bacee1
Parents:
9c514be
git-author:
Jiri Svoboda <jiri@…> (2018-04-11 18:18:43)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-12 12:57:20)
Message:

Use proper boolean constant in while loops.

Location:
uspace/drv
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/uhci/hc.c

    r9c514be r76d0981d  
    4444#include <macros.h>
    4545#include <mem.h>
     46#include <stdbool.h>
    4647#include <stdlib.h>
    4748#include <stdint.h>
     
    607608        instance->transfers_##queue.queue_head
    608609
    609         while (1) {
     610        while (true) {
    610611                const uint16_t cmd = pio_read_16(&instance->registers->usbcmd);
    611612                const uint16_t sts = pio_read_16(&instance->registers->usbsts);
  • uspace/drv/char/ski-con/ski-con.c

    r9c514be r76d0981d  
    134134        errno_t rc;
    135135
    136         while (1) {
    137                 while (1) {
     136        while (true) {
     137                while (true) {
    138138                        c = ski_con_getchar();
    139139                        if (c == 0)
  • uspace/drv/hid/ps2mouse/ps2mouse.c

    r9c514be r76d0981d  
    254254
    255255        bool buttons[PS2_BUTTON_COUNT] = {};
    256         while (1) {
     256        while (true) {
    257257                uint8_t packet[PS2_BUFSIZE] = {};
    258258                rc = ps2_mouse_read_packet(mouse, packet, PS2_BUFSIZE);
     
    306306
    307307        bool buttons[INTELLIMOUSE_BUTTON_COUNT] = {};
    308         while (1) {
     308        while (true) {
    309309                uint8_t packet[INTELLIMOUSE_BUFSIZE] = {};
    310310                rc = ps2_mouse_read_packet(mouse, packet, INTELLIMOUSE_BUFSIZE);
  • uspace/drv/hid/usbhid/mouse/mousedev.c

    r9c514be r76d0981d  
    4343#include <errno.h>
    4444#include <async.h>
     45#include <stdbool.h>
    4546#include <str_error.h>
    4647#include <ipc/mouseev.h>
     
    299300
    300301        /* Break from within. */
    301         while (1) {
     302        while (true) {
    302303                field = usb_hid_report_get_sibling(
    303304                    report, field, path,
  • uspace/drv/intctl/obio/obio.c

    r9c514be r76d0981d  
    8686        obio = (obio_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg));
    8787
    88         while (1) {
     88        while (true) {
    8989                int inr;
    9090
Note: See TracChangeset for help on using the changeset viewer.