X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnand%2Ffileio.c;h=64c32c0a8a025e3b5568ab52605db861a88a196d;hp=085e4af20bdcb3fd2b5e542239ee0f17ec39c69c;hb=5be455a710c57bbbbd49c2d671b42098db7be5dc;hpb=73b676c2fdedcb913f1c20be7de99ea0a94b11cc diff --git a/src/flash/nand/fileio.c b/src/flash/nand/fileio.c index 085e4af20b..64c32c0a8a 100644 --- a/src/flash/nand/fileio.c +++ b/src/flash/nand/fileio.c @@ -16,9 +16,7 @@ * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * + * along with this program. If not, see . * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -134,7 +132,7 @@ COMMAND_HELPER(nand_fileio_parse_args, struct nand_fileio_state *state, if (NULL == nand->device) { command_print(CMD_CTX, "#%s: not probed", CMD_ARGV[0]); - return ERROR_OK; + return ERROR_NAND_DEVICE_NOT_PROBED; } COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], state->address);