diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-10-01 02:28:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-01 03:39:24 -0400 |
commit | 397d6140e93156ecb9cafcd9be0db10ff3c12ab3 (patch) | |
tree | d24bdacaf4fd31cbddc684e4b3d9d216911b4c2d /drivers/rtc/rtc-v3020.c | |
parent | 3a2711116073db258224afd2cc0f478bdf305575 (diff) |
[PATCH] Remove unnecessary check in drivers/rtc/rtc-v3020.c
Looks like the probe function always gets a valid pdev, and checking it
after dereferencing it is pretty useless. This patch removes the check
(cid #1365)
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Raphael Assenat <raph@raphnet.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/rtc/rtc-v3020.c')
-rw-r--r-- | drivers/rtc/rtc-v3020.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c index a40f400acff6..e28cc4b0901a 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) | |||
169 | if (pdev->resource[0].flags != IORESOURCE_MEM) | 169 | if (pdev->resource[0].flags != IORESOURCE_MEM) |
170 | return -EBUSY; | 170 | return -EBUSY; |
171 | 171 | ||
172 | if (pdev == NULL) | ||
173 | return -EBUSY; | ||
174 | |||
175 | chip = kzalloc(sizeof *chip, GFP_KERNEL); | 172 | chip = kzalloc(sizeof *chip, GFP_KERNEL); |
176 | if (!chip) | 173 | if (!chip) |
177 | return -ENOMEM; | 174 | return -ENOMEM; |