[PATCH] Remove unnecessary check in drivers/rtc/rtc-v3020.c
Changes
1 files changed · +0 −3
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| drivers/rtc/rtc-v3020.c | modified | +0 | −3 | View file |
drivers/rtc/rtc-v3020.c
View filediff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c
index a40f400..e28cc4b 100644
--- a/drivers/rtc/rtc-v3020.c
+++ b/drivers/rtc/rtc-v3020.c
@@ -169,9 +169,6 @@ static int rtc_probe(struct platform_device *pdev)
if (pdev->resource[0].flags != IORESOURCE_MEM)
return -EBUSY;
- if (pdev == NULL)
- return -EBUSY;
-
chip = kzalloc(sizeof *chip, GFP_KERNEL);
if (!chip)
return -ENOMEM;