Explorar o código

pcmcia: add braces in error path

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Dominik Brodowski %!s(int64=16) %!d(string=hai) anos
pai
achega
e689597fe8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      drivers/pcmcia/cistpl.c

+ 2 - 1
drivers/pcmcia/cistpl.c

@@ -351,10 +351,11 @@ int verify_cis_cache(struct pcmcia_socket *s)
 	char *buf;
 	char *buf;
 
 
 	buf = kmalloc(256, GFP_KERNEL);
 	buf = kmalloc(256, GFP_KERNEL);
-	if (buf == NULL)
+	if (buf == NULL) {
 		dev_printk(KERN_WARNING, &s->dev,
 		dev_printk(KERN_WARNING, &s->dev,
 			   "no memory for verifying CIS\n");
 			   "no memory for verifying CIS\n");
 		return -ENOMEM;
 		return -ENOMEM;
+	}
 	list_for_each_entry(cis, &s->cis_cache, node) {
 	list_for_each_entry(cis, &s->cis_cache, node) {
 		int len = cis->len;
 		int len = cis->len;