Changeset 1433ecda in mainline for uspace/drv/block/ata_bd


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/ata_bd/ata_bd.c

    r47b2d7e3 r1433ecda  
    428428
    429429                d->blocks =
    430                      (uint32_t) idata.total_lba28_0 |
     430                    (uint32_t) idata.total_lba28_0 |
    431431                    ((uint32_t) idata.total_lba28_1 << 16);
    432432        } else {
     
    439439
    440440                d->blocks =
    441                      (uint64_t) idata.total_lba48_0 |
     441                    (uint64_t) idata.total_lba48_0 |
    442442                    ((uint64_t) idata.total_lba48_1 << 16) |
    443443                    ((uint64_t) idata.total_lba48_2 << 32) |
     
    461461        for (i = 0; i < len; ++i) {
    462462                c = model[i];
    463                 if (c >= 0x80) c = '?';
     463                if (c >= 0x80)
     464                        c = '?';
    464465
    465466                chr_encode(c, d->model, &pos, 40);
     
    795796        pio_write_8(&ctrl->cmd->drive_head, drv_head);
    796797
    797         if (wait_status(ctrl, 0, ~(SR_BSY|SR_DRQ), NULL, TIMEOUT_BSY) != EOK) {
     798        if (wait_status(ctrl, 0, ~(SR_BSY | SR_DRQ), NULL, TIMEOUT_BSY) != EOK) {
    798799                fibril_mutex_unlock(&ctrl->lock);
    799800                return EIO;
     
    12631264        while ((status & ~n_reset) != 0 || (status & set) != set) {
    12641265                --cnt;
    1265                 if (cnt <= 0) break;
     1266                if (cnt <= 0)
     1267                        break;
    12661268
    12671269                status = pio_read_8(&ctrl->cmd->status);
     
    12721274                async_usleep(10000);
    12731275                --cnt;
    1274                 if (cnt <= 0) break;
     1276                if (cnt <= 0)
     1277                        break;
    12751278
    12761279                status = pio_read_8(&ctrl->cmd->status);
Note: See TracChangeset for help on using the changeset viewer.