76ecfcb0 | 24-Sep-2020 |
Bartosz Golaszewski <bgolaszewski@baylibre.com> |
samples: configfs: prefer pr_err() over bare printk(KERN_ERR
pr_*() printing helpers are preferred over using bare printk().
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-of
samples: configfs: prefer pr_err() over bare printk(KERN_ERR
pr_*() printing helpers are preferred over using bare printk().
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
show more ...
|
288f295e | 24-Sep-2020 |
Bartosz Golaszewski <bgolaszewski@baylibre.com> |
samples: configfs: don't use spaces before tabs
The copyright notice alarms checkpatch.pl of usin spaces before tabs. Fix this.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed
samples: configfs: don't use spaces before tabs
The copyright notice alarms checkpatch.pl of usin spaces before tabs. Fix this.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
show more ...
|
4e415a84 | 24-Sep-2020 |
Bartosz Golaszewski <bgolaszewski@baylibre.com> |
samples: configfs: consolidate local variables of the same type
Move local variables of the same type into a single line for better readability.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@bay
samples: configfs: consolidate local variables of the same type
Move local variables of the same type into a single line for better readability.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
show more ...
|
91aad625 | 24-Sep-2020 |
Bartosz Golaszewski <bgolaszewski@baylibre.com> |
samples: configfs: don't reinitialize variables which are already zeroed
The structure containing the storeme field is allocated using kzalloc(). There's no need to set it to 0 again.
Signed-off-by
samples: configfs: don't reinitialize variables which are already zeroed
The structure containing the storeme field is allocated using kzalloc(). There's no need to set it to 0 again.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
show more ...
|
b86ff67d | 24-Sep-2020 |
Bartosz Golaszewski <bgolaszewski@baylibre.com> |
samples: configfs: replace simple_strtoul() with kstrtoint()
simple_strtoul() is deprecated. Use kstrtoint().
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Christoph
samples: configfs: replace simple_strtoul() with kstrtoint()
simple_strtoul() is deprecated. Use kstrtoint().
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
show more ...
|
1b0d36e8 | 24-Sep-2020 |
Bartosz Golaszewski <bgolaszewski@baylibre.com> |
samples: configfs: fix alignment in item struct
Aling the assignment of a static structure's field to be consistent with all other instances.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylib
samples: configfs: fix alignment in item struct
Aling the assignment of a static structure's field to be consistent with all other instances.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
show more ...
|
e0ee1fdb | 24-Sep-2020 |
Bartosz Golaszewski <bgolaszewski@baylibre.com> |
samples: configfs: drop unnecessary ternary operators
Checking pointers for NULL value before passing them to container_of() is pointless because even if we return NULL from the ternary operator, no
samples: configfs: drop unnecessary ternary operators
Checking pointers for NULL value before passing them to container_of() is pointless because even if we return NULL from the ternary operator, none of the users checks the returned value but they instead dereference it unconditionally. AFAICT this cannot really happen either. Simplify the code by removing the ternary operators from to_childless() et al.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
show more ...
|