ieee1275: fix build regression in of_path_of_nvme
authorJoakim Bech <joakim.bech@linaro.org>
Mon, 26 Feb 2018 08:57:34 +0000 (09:57 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 26 Feb 2018 09:37:36 +0000 (10:37 +0100)
commit72b425b640f67ad7e6e0056a7a793bddc9997985
treeb6f158a80f12ec5afbd406daa446af33d9749568
parenta244d9ebc7547f7ed373d9796a3bf186e7c035a1
ieee1275: fix build regression in of_path_of_nvme

The of_path_of_nvme function (commit 2391d57, ieee1275: add nvme
support within ofpath) introduced a build regression:
    grub-core/osdep/linux/ofpath.c:365:21: error: comparison between pointer
    and zero character constant [-Werror=pointer-compare]
       if ((digit_string != '\0') && (*part_end == 'p'))

Update digit_string to compare against the char instead of the pointer.

Signed-off-by: Joakim Bech <joakim.bech@linaro.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/osdep/linux/ofpath.c