samv7: fix compile warning in PWM and UART drivers
The following warnings is fixed: chip/sam_pwm.c:961:12: warning: unused variable 'regval' [-Wunused-variable] 961 | uint32_t regval; chip/sam_serial.c: In function 'sam_dma_txavailable': chip/sam_serial.c:2264:7: warning: unused variable 'rv' [-Wunused-variable] 2264 | int rv; Signed-off-by: Michal Lenc <michallenc@seznam.cz>
This commit is contained in:
parent
2bc97c0f0e
commit
5c48944e0b
@ -957,9 +957,9 @@ static int pwm_start(struct pwm_lowerhalf_s *dev,
|
||||
const struct pwm_info_s *info)
|
||||
{
|
||||
struct sam_pwm_s *priv = (struct sam_pwm_s *)dev;
|
||||
#ifdef CONFIG_PWM_MULTICHAN
|
||||
uint32_t regval;
|
||||
|
||||
#ifdef CONFIG_PWM_MULTICHAN
|
||||
for (int i = 0; i < PWM_NCHANNELS; i++)
|
||||
{
|
||||
int8_t index = info->channels[i].channel;
|
||||
|
@ -2261,7 +2261,6 @@ static void sam_dma_txint(struct uart_dev_s *dev, bool enable)
|
||||
static void sam_dma_txavailable(struct uart_dev_s *dev)
|
||||
{
|
||||
struct sam_dev_s *priv = (struct sam_dev_s *)dev->priv;
|
||||
int rv;
|
||||
|
||||
/* Only send when the DMA is idle */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user