diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-03-20 12:59:09 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-04-04 10:07:08 +0200 |
commit | 606cc43c720bdef01a22c9d221434c635139d84e (patch) | |
tree | fcb6a8c1a393aee18894191db8e5893dbf76e3a9 /drivers/rtc/nvmem.c | |
parent | 6875404fdb44f5353ef374c7c95c7701862fe2b3 (diff) | |
download | linux-606cc43c720bdef01a22c9d221434c635139d84e.tar.bz2 |
rtc: core: correct trivial checkpatch warnings
Correct trivial checkpatch warnings, mostly whitespace issues and
unbalanced braces.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/nvmem.c')
-rw-r--r-- | drivers/rtc/nvmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/nvmem.c b/drivers/rtc/nvmem.c index 7481a4cd2753..4312096c7738 100644 --- a/drivers/rtc/nvmem.c +++ b/drivers/rtc/nvmem.c @@ -43,7 +43,7 @@ static int rtc_nvram_register(struct rtc_device *rtc, { int err; - rtc->nvram = kzalloc(sizeof(struct bin_attribute), GFP_KERNEL); + rtc->nvram = kzalloc(sizeof(*rtc->nvram), GFP_KERNEL); if (!rtc->nvram) return -ENOMEM; |