summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Guoyin <guoyin.chen@nxp.com>2016-11-15 15:58:32 +0800
committerChen Guoyin <guoyin.chen@nxp.com>2016-11-15 16:27:49 +0800
commit4363cc7e2be93cd32fb15790b6f3a1c4039df1c7 (patch)
tree31234904029e4ed85a2fb2551a06cbd551e4b75e
parentb67bc30e34a9d1e438a49927c64e69dd2e0f5b3e (diff)
downloadu-boot-imx-4363cc7e2be93cd32fb15790b6f3a1c4039df1c7.zip
u-boot-imx-4363cc7e2be93cd32fb15790b6f3a1c4039df1c7.tar.gz
u-boot-imx-4363cc7e2be93cd32fb15790b6f3a1c4039df1c7.tar.bz2
MA-9007 fastboot: Remove NULL pointer print
Remove the log in uboot when no valid partition can be found "Partition:'<NULL>' does not exist" Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
-rw-r--r--drivers/usb/gadget/f_fastboot.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index cdb9b3d..48fbee8 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -806,8 +806,7 @@ static void process_flash_sata(const char *cmdbuf, char *response)
/* Next is the partition name */
ptn = fastboot_flash_find_ptn(cmdbuf);
- if (ptn == 0) {
- printf("Partition:'%s' does not exist\n", ptn->name);
+ if (ptn == NULL) {
sprintf(response, "FAILpartition does not exist");
} else if ((download_bytes >
ptn->length * MMC_SATA_BLOCK_SIZE) &&
@@ -923,8 +922,7 @@ static void process_flash_mmc(const char *cmdbuf, char *response)
/* Next is the partition name */
ptn = fastboot_flash_find_ptn(cmdbuf);
- if (ptn == 0) {
- printf("Partition:'%s' does not exist\n", ptn->name);
+ if (ptn == NULL) {
sprintf(response, "FAILpartition does not exist");
} else if ((download_bytes >
ptn->length * MMC_SATA_BLOCK_SIZE) &&