summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2023-02-02 15:25:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-02-03 08:56:16 +0100
commit39554e113f24aaa5dfa3e11023a08a17797036e4 (patch)
tree8514112e2de7dfe5fa6d9b071dbf9250d4a3f496 /fs
parent73e4093651f2ff7c7ccf01f37644f7279e0cb939 (diff)
downloadbarebox-39554e113f24aaa5dfa3e11023a08a17797036e4.tar.gz
fs: remove unused members of struct stat
Some members in struct stat are never written, so drop them. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Link: https://lore.barebox.org/20230202142512.3551195-1-ahmad@a3f.at Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fs.c b/fs/fs.c
index 752688b574..715a7a4eb9 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -160,9 +160,9 @@ void stat_print(const char *filename, const struct stat *st)
fdev = get_fsdevice_by_path(filename);
- printf("\nDevice: %s\tInode: %lu\tLinks: %u\n",
+ printf("\nDevice: %s\tInode: %lu\n",
fdev ? dev_name(&fdev->dev) : "<unknown>",
- st->st_ino, st->st_nlink);
+ st->st_ino);
printf("Access: (%04o/%s)\tUid: (%u)\tGid: (%u)\n",
st->st_mode & 07777, modestr, st->st_uid, st->st_gid);