diff options
| author | hathach <[email protected]> | 2014-03-14 16:11:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-14 16:11:38 +0700 |
| commit | 4f1ae1cd1d651fdd7fd3e02081b05a7528e96ba7 (patch) | |
| tree | 051907469ea7cc108dcef2d323544ca22e6318b2 /tinyusb | |
| parent | 16df2a2f621d84107ed27d3df39e618c522cd027 (diff) | |
clean up more warnings
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/host/ohci/ohci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tinyusb/host/ohci/ohci.c b/tinyusb/host/ohci/ohci.c index 5bd7db475..c1cdc3ea2 100644 --- a/tinyusb/host/ohci/ohci.c +++ b/tinyusb/host/ohci/ohci.c @@ -660,7 +660,8 @@ static void done_queue_isr(uint8_t hostid) void hcd_isr(uint8_t hostid)
{
- uint32_t int_status = OHCI_REG->interrupt_status & OHCI_REG->interrupt_enable;
+ uint32_t const int_en = OHCI_REG->interrupt_enable;
+ uint32_t const int_status = OHCI_REG->interrupt_status & int_en;
if (int_status == 0) return;
|
