From: Stricted Date: Sat, 19 Jun 2021 23:10:46 +0000 (+0000) Subject: amlogic: mmc: Fix null check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97b53e0c82af0e9f7a7f1ba0f484860fda09957f;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git amlogic: mmc: Fix null check Change-Id: I08b33f1971b753cd443ac2006c08642414cee5fb --- diff --git a/drivers/amlogic/mmc/emmc_partitions.c b/drivers/amlogic/mmc/emmc_partitions.c index ead579f276d4..7150dd1e6f8f 100644 --- a/drivers/amlogic/mmc/emmc_partitions.c +++ b/drivers/amlogic/mmc/emmc_partitions.c @@ -973,7 +973,7 @@ static int mmc_read_partition_tbl(struct mmc_card *card, sizeof(pt_fmt->magic)) != 0) { pr_info("magic error: %s\n", - (pt_fmt->magic)?pt_fmt->magic:"NULL"); + (pt_fmt->magic != NULL)?pt_fmt->magic:"NULL"); } else if ((pt_fmt->part_num < 0) || (pt_fmt->part_num > MAX_MMC_PART_NUM)) {