]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/spi/spidev_test.c
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux...
[karo-tx-linux.git] / tools / spi / spidev_test.c
index f046b77cfefe3056a72b82aa2194eb55e8b2fa93..816f119c9b7b1584a587077a55e28691418ff706 100644 (file)
@@ -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);