diff options
Diffstat (limited to 'drivers/pcmcia/sa1111_generic.c')
-rw-r--r-- | drivers/pcmcia/sa1111_generic.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/pcmcia/sa1111_generic.c b/drivers/pcmcia/sa1111_generic.c index deb5036ee5fb..de6bc333d299 100644 --- a/drivers/pcmcia/sa1111_generic.c +++ b/drivers/pcmcia/sa1111_generic.c | |||
@@ -127,10 +127,6 @@ int sa1111_pcmcia_add(struct sa1111_dev *dev, struct pcmcia_low_level *ops, | |||
127 | ops->socket_state = sa1111_pcmcia_socket_state; | 127 | ops->socket_state = sa1111_pcmcia_socket_state; |
128 | ops->socket_suspend = sa1111_pcmcia_socket_suspend; | 128 | ops->socket_suspend = sa1111_pcmcia_socket_suspend; |
129 | 129 | ||
130 | s = kzalloc(sizeof(*s) * ops->nr, GFP_KERNEL); | ||
131 | if (!s) | ||
132 | return -ENODEV; | ||
133 | |||
134 | for (i = 0; i < ops->nr; i++) { | 130 | for (i = 0; i < ops->nr; i++) { |
135 | s = kzalloc(sizeof(*s), GFP_KERNEL); | 131 | s = kzalloc(sizeof(*s), GFP_KERNEL); |
136 | if (!s) | 132 | if (!s) |