aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2017-12-21 13:57:13 +0100
committerChris Ball <chris@printf.net>2018-02-16 20:19:43 -0500
commit247191a0f7d2143212240bf89d8ef0f1be0f635f (patch)
treeddbf8ec04d8f9eef9fc232297c4addc367dc0ff8
parenta1a6120c34133d87bedfb04ab06ce43097c5e0d2 (diff)
downloadmmc-utils-247191a0f7d2143212240bf89d8ef0f1be0f635f.tar.gz
mmc-utils: remove unused #includes
I didn't find any functions used for which the documentation specifies to use (at least) one of the dropped headers. The only Linux specific header <linux/fs.h> is needed for BLKGETSIZE, document that. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Chris Ball <chris@printf.net>
-rw-r--r--mmc_cmds.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mmc_cmds.c b/mmc_cmds.c
index cec947d..038dbd4 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -22,17 +22,13 @@
#include <string.h>
#include <sys/ioctl.h>
#include <sys/types.h>
-#include <dirent.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
-#include <libgen.h>
-#include <limits.h>
-#include <ctype.h>
#include <errno.h>
#include <stdint.h>
#include <assert.h>
-#include <linux/fs.h>
+#include <linux/fs.h> /* for BLKGETSIZE */
#include "mmc.h"
#include "mmc_cmds.h"