Skip to content

Commit 0553164

Browse files
AlessandroLuoaescolar
authored andcommitted
drivers: spi: remove unused variables
Removed unused variables to get rid of warning Signed-off-by: Hao Luo <[email protected]>
1 parent b1610b8 commit 0553164

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/spi/spi_ambiq.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ typedef void (*spi_context_update_trx)(struct spi_context *ctx, uint8_t dfs, uin
4949

5050
#define SPI_WORD_SIZE 8
5151

52-
#define SPI_CS_INDEX 3
53-
5452
static void spi_ambiq_pm_policy_state_lock_get(const struct device *dev)
5553
{
5654
if (IS_ENABLED(CONFIG_PM)) {
@@ -370,7 +368,7 @@ static int spi_ambiq_transceive(const struct device *dev, const struct spi_confi
370368
const struct spi_buf_set *rx_bufs)
371369
{
372370
struct spi_ambiq_data *data = dev->data;
373-
int pm_ret, ret = 0;
371+
int ret = 0;
374372

375373
if (!tx_bufs && !rx_bufs) {
376374
return 0;

0 commit comments

Comments
 (0)