]> git.sur5r.net Git - u-boot/blobdiff - fs/btrfs/inode.c
ARM: dts: rmobile: Add Renesas Ebisu board support
[u-boot] / fs / btrfs / inode.c
index 0d3da282966176765cdf592610dee5f654dda4da..991c2f68c3b7421ee54be304755b5d5ca4d1d84e 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * BTRFS filesystem implementation for U-Boot
  *
  * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include "btrfs.h"
@@ -210,7 +209,6 @@ static inline const char *skip_current_directories(const char *cur)
        return cur;
 }
 
-/* inode.c, musi vratit aj root stromu kde sa inoda najde */
 u64 btrfs_lookup_path(struct btrfs_root *root, u64 inr, const char *path,
                      u8 *type_p, struct btrfs_inode_item *inode_item_p,
                      int symlink_limit)
@@ -324,7 +322,7 @@ u64 btrfs_file_read(const struct btrfs_root *root, u64 inr, u64 offset,
        struct btrfs_path path;
        struct btrfs_key key;
        struct btrfs_file_extent_item *extent;
-       int res;
+       int res = 0;
        u64 rd, rd_all = -1ULL;
 
        key.objectid = inr;