Fixes the following compiler warning:
bulkstat_unlink_test_modified.c:171:26: warning: equality comparison
with extraneous parentheses [-Wparentheses-equality]
if ((ret[i].bs_ino == inodelist[j])) {
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
Signed-off-by: Rostislav Skudnov <rostislav@tuxera.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eryu Guan <eguan@redhat.com>
- if ((ret[i].bs_ino == inodelist[j])) {
- if ((genlist[j] + 1) != ret[i].bs_gen) {
- /* oops, the new gen number is not 1 bigger than the old */
- printf("Inode with old generation %d, new generation %d\n",
- genlist[j], ret[i].bs_gen);
- exit(1);
- }
+ if (ret[i].bs_ino == inodelist[j] &&
+ ret[i].bs_gen != genlist[j] + 1) {
+ /* oops, the new gen number is not 1 bigger than the old */
+ printf("Inode with old generation %d, new generation %d\n",
+ genlist[j], ret[i].bs_gen);
+ exit(1);