spi: spidev_test: Fix input file check when transferring file
Check the input file fd instead of spidev fd. The spidev fd is supposed to be OK otherwise the transfer_file() function would not be called at all. Signed-off-by: NMichal Vokáč <vokac.m@gmail.com> Reviewed-by: NJoshua Clayton <stillcompiling@gmail.com> Signed-off-by: NMark Brown <broonie@kernel.org>
Showing
想要评论请 注册 或 登录