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

Commit d16abd30 authored by Caesar Wang's avatar Caesar Wang Committed by Greg Kroah-Hartman
Browse files

nvmem: sunxi: trivial: fix code style



this pacthset try to fix the code style for sunxi.

Signed-off-by: default avatarCaesar Wang <wxt@rock-chips.com>
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 313a72ff
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -13,10 +13,8 @@
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 */


#include <linux/device.h>
#include <linux/io.h>
#include <linux/module.h>
@@ -27,7 +25,6 @@
#include <linux/slab.h>
#include <linux/random.h>


static struct nvmem_config econfig = {
	.name = "sunxi-sid",
	.read_only = true,
@@ -130,7 +127,7 @@ static int sunxi_sid_probe(struct platform_device *pdev)
	if (IS_ERR(nvmem))
		return PTR_ERR(nvmem);

	randomness = kzalloc(sizeof(u8) * size, GFP_KERNEL);
	randomness = kzalloc(sizeof(u8) * (size), GFP_KERNEL);
	if (!randomness) {
		ret = -EINVAL;
		goto err_unreg_nvmem;