Skip to content

Commit

Permalink
Fixing memset call in pisound.c
Browse files Browse the repository at this point in the history
Signed-off-by: Giedrius Trainavicius <giedrius@blokas.io>
  • Loading branch information
gtrainavicius authored and pelwell committed Feb 24, 2018
1 parent d9db059 commit beb6e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/bcm/pisound.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static void spi_transfer(const uint8_t *txbuf, uint8_t *rxbuf, int len)
struct spi_transfer transfer;
struct spi_message msg;

memset(rxbuf, 0, sizeof(txbuf));
memset(rxbuf, 0, len);

if (!pisnd_spi_device) {
printe("pisnd_spi_device null, returning\n");
Expand Down

0 comments on commit beb6e64

Please sign in to comment.