Skip to content

Commit

Permalink
pcmcia: document return value of pcmcia_loop_config
Browse files Browse the repository at this point in the history
Hopefully it will be harder to get it wrong now. Also fix an unneeded
initialization while we are here.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Wolfram Sang authored and Greg Kroah-Hartman committed Sep 15, 2009
1 parent cb6dbd7 commit 889c277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pcmcia/pcmcia_resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ struct pcmcia_cfg_mem {
*
* pcmcia_loop_config() loops over all configuration options, and calls
* the driver-specific conf_check() for each one, checking whether
* it is a valid one.
* it is a valid one. Returns 0 on success or errorcode otherwise.
*/
int pcmcia_loop_config(struct pcmcia_device *p_dev,
int (*conf_check) (struct pcmcia_device *p_dev,
Expand All @@ -915,7 +915,7 @@ int pcmcia_loop_config(struct pcmcia_device *p_dev,
struct pcmcia_cfg_mem *cfg_mem;

tuple_t *tuple;
int ret = -ENODEV;
int ret;
unsigned int vcc;

cfg_mem = kzalloc(sizeof(struct pcmcia_cfg_mem), GFP_KERNEL);
Expand Down

0 comments on commit 889c277

Please sign in to comment.