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>
This commit is contained in:
Alexandre Belloni
2019-03-20 12:59:09 +01:00
parent 6875404fdb
commit 606cc43c72
8 changed files with 93 additions and 90 deletions

View File

@@ -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;