summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-04-24 08:40:55 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2024-04-25 09:39:03 +0200
commitf607c950a05e9c3e490e3b6ce12398ad4cfcaafb (patch)
tree84c1f5fe7e7cbfd1cd677129edffdc67d9a68b66 /fs
parent7cffd374fbc3183adbb06b42ef2af7d816cc76c8 (diff)
downloadbarebox-f607c950a05e9c3e490e3b6ce12398ad4cfcaafb.tar.gz
barebox-f607c950a05e9c3e490e3b6ce12398ad4cfcaafb.tar.xz
treewide: use new dma_zalloc instead of opencoding
We got a number of places using dma_alloc and zeroing its contents. Replace the ones found by a quick grep with the new dma_zalloc. No functional change. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240424064058.3608016-21-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/ext4/ext4_common.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/fs/ext4/ext4_common.h b/fs/ext4/ext4_common.h
index f8ebd76266..3286a21c0e 100644
--- a/fs/ext4/ext4_common.h
+++ b/fs/ext4/ext4_common.h
@@ -36,15 +36,7 @@
#include "ext4fs.h"
#include "ext_common.h"
-static inline void *zalloc(size_t size)
-{
- void *p = dma_alloc(size);
-
- if (p)
- memset(p, 0, size);
-
- return p;
-}
+#define zalloc dma_zalloc
int ext4fs_read_inode(struct ext2_data *data, int ino,
struct ext2_inode *inode);