projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59ee4ad
)
amlogic: mmc: Fix null check
author
Stricted
<info@stricted.net>
Sat, 19 Jun 2021 23:10:46 +0000
(23:10 +0000)
committer
Nolen Johnson
<johnsonnolen@gmail.com>
Tue, 21 Dec 2021 18:35:25 +0000
(13:35 -0500)
Change-Id: I08b33f1971b753cd443ac2006c08642414cee5fb
drivers/amlogic/mmc/emmc_partitions.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/amlogic/mmc/emmc_partitions.c
b/drivers/amlogic/mmc/emmc_partitions.c
index f1c74c66229f0d37a46c5522b35f4a7b9393ff1e..1e1d79d04a522b7f9561b5113f35d61bc5467956 100644
(file)
--- 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)) {