diff mbox

[mmc-utils,6/6] mmc-utils: remove unused #includes

Message ID 20171221133316.19466-7-u.kleine-koenig@pengutronix.de (mailing list archive)
State New, archived
Headers show

Commit Message

Uwe Kleine-König Dec. 21, 2017, 1:33 p.m. UTC
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.
---
 mmc_cmds.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
diff mbox

Patch

diff --git a/mmc_cmds.c b/mmc_cmds.c
index cec947da1d4a..038dbd42e6bf 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"