From: Bartosz Golaszewski Date: Mon, 19 Mar 2018 09:17:19 +0000 (+0100) Subject: eeprom: at24: tweak newlines X-Git-Tag: v4.19~1300^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de5db101fc89fbbbf26abc7eeb3d48c40ca25105;p=platform%2Fkernel%2Flinux-rpi.git eeprom: at24: tweak newlines Remove the newline between the nvmem registration and its return value check. This is consistent with the rest of the driver code. Add a missing newline between two pdata checks to stay consistent with all the others. Signed-off-by: Bartosz Golaszewski Tested-by: Andy Shevchenko Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index f871439..5fc7c95 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -585,6 +585,7 @@ static int at24_probe(struct i2c_client *client) dev_err(dev, "page_size must not be 0!\n"); return -EINVAL; } + if (!is_power_of_2(pdata.page_size)) dev_warn(dev, "page_size looks suspicious (no power of 2)!\n"); @@ -686,7 +687,6 @@ static int at24_probe(struct i2c_client *client) nvmem_config.size = pdata.byte_len; at24->nvmem = nvmem_register(&nvmem_config); - if (IS_ERR(at24->nvmem)) { err = PTR_ERR(at24->nvmem); goto err_clients;