forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/block/partitions/amiga.c
....@@ -14,7 +14,6 @@
1414 #include <linux/affs_hardblocks.h>
1515
1616 #include "check.h"
17
-#include "amiga.h"
1817
1918 static __inline__ u32
2019 checksum_block(__be32 *m, int size)
....@@ -42,9 +41,8 @@
4241 goto rdb_done;
4342 data = read_part_sector(state, blk, &sect);
4443 if (!data) {
45
- if (warn_no_part)
46
- pr_err("Dev %s: unable to read RDB block %d\n",
47
- bdevname(state->bdev, b), blk);
44
+ pr_err("Dev %s: unable to read RDB block %d\n",
45
+ bdevname(state->bdev, b), blk);
4846 res = -1;
4947 goto rdb_done;
5048 }
....@@ -85,9 +83,8 @@
8583 blk *= blksize; /* Read in terms partition table understands */
8684 data = read_part_sector(state, blk, &sect);
8785 if (!data) {
88
- if (warn_no_part)
89
- pr_err("Dev %s: unable to read partition block %d\n",
90
- bdevname(state->bdev, b), blk);
86
+ pr_err("Dev %s: unable to read partition block %d\n",
87
+ bdevname(state->bdev, b), blk);
9188 res = -1;
9289 goto rdb_done;
9390 }