diff options
Diffstat (limited to 'drivers/acpi/nfit/core.c')
| -rw-r--r-- | drivers/acpi/nfit/core.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index 662036bdc65e..c8ea9d698cd0 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c | |||
| @@ -1617,7 +1617,11 @@ static int cmp_map(const void *m0, const void *m1) | |||
| 1617 | const struct nfit_set_info_map *map0 = m0; | 1617 | const struct nfit_set_info_map *map0 = m0; |
| 1618 | const struct nfit_set_info_map *map1 = m1; | 1618 | const struct nfit_set_info_map *map1 = m1; |
| 1619 | 1619 | ||
| 1620 | return map0->region_offset - map1->region_offset; | 1620 | if (map0->region_offset < map1->region_offset) |
| 1621 | return -1; | ||
| 1622 | else if (map0->region_offset > map1->region_offset) | ||
| 1623 | return 1; | ||
| 1624 | return 0; | ||
| 1621 | } | 1625 | } |
| 1622 | 1626 | ||
| 1623 | /* Retrieve the nth entry referencing this spa */ | 1627 | /* Retrieve the nth entry referencing this spa */ |
