Thibaut VARÈNE 39ec3c5986 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>
2020-05-28 11:09:10 +02:00
..
2020-04-30 00:52:04 +02:00
2020-05-12 12:36:28 +02:00
2020-04-30 00:52:04 +02:00
2020-05-08 03:32:52 +03:00
2020-03-12 09:28:23 +01:00
2020-05-07 12:53:06 +02:00
2020-03-28 13:03:02 +01:00
2020-05-25 12:04:55 +02:00
2020-04-28 01:10:48 +02:00
2020-03-28 22:58:36 +01:00
2020-05-20 15:26:22 +02:00
2020-03-17 00:51:48 +01:00