Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99700716 authored by Chihau Chau's avatar Chihau Chau Committed by Herbert Xu
Browse files

crypto: geode-aes - Fix some code style issues



This fixes some code style issues like:

- Use #include <linux/io.h> instead of <asm/io.h> and #include
  <linux/delay.h> instead of <asm/delay.h>

- Use "foo *bar" instead of "foo * bar"

- Add a space after the for or while sentence and before the open
  parenthesis '('

- Don't use assignments in a if condition

Signed-off-by: default avatarChihau Chau <chihau@gmail.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 750052dd
Loading
Loading
Loading
Loading
+20 −16
Original line number Diff line number Diff line
@@ -15,8 +15,8 @@
#include <crypto/algapi.h>
#include <crypto/aes.h>

#include <asm/io.h>
#include <asm/delay.h>
#include <linux/io.h>
#include <linux/delay.h>

#include "geode-aes.h"

@@ -518,11 +518,12 @@ static int __devinit
geode_aes_probe(struct pci_dev *dev, const struct pci_device_id *id)
{
	int ret;

	if ((ret = pci_enable_device(dev)))
	ret = pci_enable_device(dev);
	if (ret)
		return ret;

	if ((ret = pci_request_regions(dev, "geode-aes")))
	ret = pci_request_regions(dev, "geode-aes");
	if (ret)
		goto eenable;

	_iobase = pci_iomap(dev, 0, 0);
@@ -537,13 +538,16 @@ geode_aes_probe(struct pci_dev *dev, const struct pci_device_id *id)
	/* Clear any pending activity */
	iowrite32(AES_INTR_PENDING | AES_INTR_MASK, _iobase + AES_INTR_REG);

	if ((ret = crypto_register_alg(&geode_alg)))
	ret = crypto_register_alg(&geode_alg);
	if (ret)
		goto eiomap;

	if ((ret = crypto_register_alg(&geode_ecb_alg)))
	ret = crypto_register_alg(&geode_ecb_alg);
	if (ret)
		goto ealg;

	if ((ret = crypto_register_alg(&geode_cbc_alg)))
	ret = crypto_register_alg(&geode_cbc_alg);
	if (ret)
		goto eecb;

	printk(KERN_NOTICE "geode-aes: GEODE AES engine enabled.\n");