mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-11-23 16:02:28 +00:00
Actually apply patch #10028 :)
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1492 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
@@ -157,7 +157,6 @@ static int linuxspi_open(PROGRAMMER *pgm, char *port)
|
||||
|
||||
fd_gpiochip = open(gpiochip, 0);
|
||||
if (fd_gpiochip < 0) {
|
||||
close(fd_spidev);
|
||||
avrdude_message(MSG_INFO, "\n%s error: Unable to open the gpiochip %s", progname, gpiochip);
|
||||
ret = -1;
|
||||
goto close_spidev;
|
||||
@@ -193,6 +192,7 @@ close_spidev:
|
||||
|
||||
static void linuxspi_close(PROGRAMMER *pgm)
|
||||
{
|
||||
close(fd_linehandle);
|
||||
close(fd_spidev);
|
||||
close(fd_gpiochip);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user