diff options
author | Thibaut VARÈNE <hacks@slashdirt.org> | 2020-05-13 18:42:45 +0200 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2020-05-28 11:09:10 +0200 |
commit | 39ec3c5986e5109c3f1dd63b27d884606453191b (patch) | |
tree | 11875d66c9f6f70e87f93faf7dbb69bc6df4bcea /Makefile | |
parent | 429fbc96a4dbefaed82b22f93f504254a0b4cbe6 (diff) | |
download | upstream-39ec3c5986e5109c3f1dd63b27d884606453191b.tar.gz upstream-39ec3c5986e5109c3f1dd63b27d884606453191b.tar.bz2 upstream-39ec3c5986e5109c3f1dd63b27d884606453191b.zip |
generic: platform/mikrotik: rb_hardconfig.c minor fixes
For the sake of strictly typed code, add a missing const qualifier.
Add a missing return value in error path.
Check the return value of mtd_read(), for good measure.
Also demote the error printks of failed sysfs file creation to warn
level since they are not fatal in the init() sequence.
Finally, add a note regarding PAGE_SIZE and clarify a comment.
Tested-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions