projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cmd/gpt: avoid NULL check before free()
[oweals/u-boot.git]
/
cmd
/
ide.c
diff --git
a/cmd/ide.c
b/cmd/ide.c
index e3c32420cfe8886590dcee5478f41fa21140343d..2f93ba7904648837dd7e2b4596e3b5e73a7f1717 100644
(file)
--- a/
cmd/ide.c
+++ b/
cmd/ide.c
@@
-1,8
+1,7
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2000-2011
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
/*
* (C) Copyright 2000-2011
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
/*
*/
/*
@@
-18,10
+17,6
@@
#include <asm/byteorder.h>
#include <asm/io.h>
#include <asm/byteorder.h>
#include <asm/io.h>
-#if defined(CONFIG_IDE_PCMCIA)
-# include <pcmcia.h>
-#endif
-
#include <ide.h>
#include <ata.h>
#include <ide.h>
#include <ata.h>
@@
-30,7
+25,7
@@
#endif
/* Current I/O Device */
#endif
/* Current I/O Device */
-static int curr_device
= -1
;
+static int curr_device;
int do_ide(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{
int do_ide(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{