From: Miquel Raynal Date: Thu, 16 Aug 2018 15:30:20 +0000 (+0200) Subject: cmd: ubi: delete useless and misleading definitions X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=b01c146d182da12e0b60022b34d15fd3a0c0f0fc;p=u-boot.git cmd: ubi: delete useless and misleading definitions These definitions are simply not used and are misleading because similar definitions exist in jffs2/load_kernel.h and are used widely to define MTD device types (which is, by the way, totally redundant with what the MTD core does). Remove these definitions. Signed-off-by: Miquel Raynal Acked-by: Jagan Teki Reviewed-by: Boris Brezillon --- diff --git a/cmd/ubi.c b/cmd/ubi.c index 913f0f71fd..0a3405a3b1 100644 --- a/cmd/ubi.c +++ b/cmd/ubi.c @@ -27,11 +27,6 @@ #undef ubi_msg #define ubi_msg(fmt, ...) printf("UBI: " fmt "\n", ##__VA_ARGS__) -#define DEV_TYPE_NONE 0 -#define DEV_TYPE_NAND 1 -#define DEV_TYPE_ONENAND 2 -#define DEV_TYPE_NOR 3 - /* Private own data */ static struct ubi_device *ubi; static char buffer[80];