summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-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) &&