Commit 53fc595
nvdimm/namespace: drop unneeded temporary variable in size_store()
Refactor size_store() in order to remove temporary variable on stack
by joining conditionals.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220607153750.33639-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>1 parent 36a40c3 commit 53fc595
1 file changed
Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
840 | 839 | | |
841 | 840 | | |
842 | 841 | | |
| |||
850 | 849 | | |
851 | 850 | | |
852 | 851 | | |
853 | | - | |
| 852 | + | |
| 853 | + | |
854 | 854 | | |
855 | 855 | | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
| 856 | + | |
| 857 | + | |
863 | 858 | | |
864 | 859 | | |
865 | 860 | | |
| |||
0 commit comments