diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2016-12-09 13:30:04 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2016-12-09 13:30:04 +1100 |
commit | 6b523f8b122d255415ce39eea563eb3e92e420b1 (patch) | |
tree | 2d861b82d7a3b00b349139e81eb961125f68eb1b /tools | |
parent | 7ddaf4f307ad159ff4eede94839f392f38b41d16 (diff) | |
parent | b4c2d5a2a28d44fa20f2145181d95bf436999705 (diff) |
next-20161208/spi
Diffstat (limited to 'tools')
-rw-r--r-- | tools/spi/spidev_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/spi/spidev_test.c b/tools/spi/spidev_test.c index f046b77cfefe..816f119c9b7b 100644 --- a/tools/spi/spidev_test.c +++ b/tools/spi/spidev_test.c @@ -315,7 +315,7 @@ static void transfer_file(int fd, char *filename) pabort("can't stat input file"); tx_fd = open(filename, O_RDONLY); - if (fd < 0) + if (tx_fd < 0) pabort("can't open input file"); tx = malloc(sb.st_size); |