Fixes for more issues found by cppcheck

This commit is contained in:
Gregory Nutt 2014-11-24 17:00:26 -06:00
parent 7cfd619167
commit ad36e75a40
3 changed files with 3 additions and 4 deletions

View File

@ -218,13 +218,13 @@ static inline int sam_configinterrupt(uintptr_t base, uint32_t pin,
if (edges == GPIO_INT_RISING)
{
/* Rising only.. disable interrrupts on the falling edge */
/* Rising only.. disable interrupts on the falling edge */
putreg32(pin, base + SAM_GPIO_IMR0S_OFFSET);
}
else if (edges == GPIO_INT_FALLING)
{
/* Falling only.. disable interrrupts on the rising edge */
/* Falling only.. disable interrupts on the rising edge */
putreg32(pin, base + SAM_GPIO_IMR1S_OFFSET);
}

View File

@ -441,7 +441,7 @@ static inline void sam_osc32k_config(void)
/* Recover OSC32K calibration data from OTP "fuse" memory */
regval = getreg32(SYSCTRL_FUSES_OSC32KCAL_ADDR)
regval = getreg32(SYSCTRL_FUSES_OSC32KCAL_ADDR);
calib = (regval & SYSCTRL_FUSES_OSC32KCAL_MASK) >> SYSCTRL_FUSES_OSC32KCAL_SHIFT;
regval = calib << SYSCTRL_OSC32K_CALIB_SHIFT;

View File

@ -206,7 +206,6 @@ static ssize_t ccm_read(FAR struct file *filep, FAR char *buffer,
size_t buflen)
{
FAR struct ccm_file_s *priv;
ssize_t ret = 0;
size_t linesize;
size_t copysize;
size_t remaining;