Changeset 5d64fef2 in rtems


Ignore:
Timestamp:
Dec 5, 2011, 9:21:11 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
32f5014b
Parents:
a19ccd7
Message:

2011-12-05 Sebastian Huber <sebastian.huber@…>

PR 1975/misc

  • libchip/ide/ata.c, libchip/ide/ata_util.c: Fixed warnings.
Location:
c/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/ChangeLog

    ra19ccd7 r5d64fef2  
     12011-12-05      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        PR 1975/misc
     4        * libchip/ide/ata.c, libchip/ide/ata_util.c: Fixed warnings.
     5
    162011-12-03      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/libchip/ide/ata.c

    ra19ccd7 r5d64fef2  
    422422    uint16_t         byte; /* emphasize that only 8 low bits is meaningful */
    423423    ata_queue_msg_t  msg;
    424     uint8_t          i, dev;
     424    uint8_t          i;
     425#if 0
     426    uint8_t          dev;
     427#endif
    425428    uint16_t         val;
    426429    ISR_Level        level;
     
    435438    _ISR_Enable(level);
    436439
     440#if 0
    437441    /* get ATA device identifier (0 or 1) */
    438442    dev =  areq->regs.regs[IDE_REGISTER_DEVICE_HEAD] &
    439443           IDE_REGISTER_DEVICE_HEAD_DEV;
     444#endif
    440445
    441446    /* execute device select protocol */
     
    743748{
    744749    uint16_t        val;
     750#if 0
    745751    uint8_t         dev;
     752#endif
    746753    ata_queue_msg_t msg;
    747754
     755#if 0
    748756    dev =  areq->regs.regs[IDE_REGISTER_DEVICE_HEAD] &
    749757           IDE_REGISTER_DEVICE_HEAD_DEV;
     758#endif
    750759
    751760    if (areq->cnt)
     
    787796{
    788797    uint16_t        val;
     798#if 0
    789799    uint8_t         dev;
     800#endif
    790801    ata_queue_msg_t msg;
    791802
     
    794805#endif
    795806
     807#if 0
    796808    dev =  areq->regs.regs[IDE_REGISTER_DEVICE_HEAD] &
    797809           IDE_REGISTER_DEVICE_HEAD_DEV;
     810#endif
    798811
    799812    if (areq->cnt == 0)
  • c/src/libchip/ide/ata_util.c

    ra19ccd7 r5d64fef2  
    3636{
    3737    uint16_t           byte;/* emphasize that only 8 low bits is meaningful */
    38     uint8_t            i, dev;
     38    uint8_t            i;
     39#if 0
     40    uint8_t            dev;
     41#endif
    3942    uint16_t           val, val1;
    4043    volatile unsigned  retries;
     
    4245    assert(areq);
    4346
     47#if 0
    4448    dev =  areq->regs.regs[IDE_REGISTER_DEVICE_HEAD] &
    4549           IDE_REGISTER_DEVICE_HEAD_DEV;
     50#endif
    4651
    4752    ide_controller_write_register(ctrl_minor, IDE_REGISTER_DEVICE_HEAD,
Note: See TracChangeset for help on using the changeset viewer.