summaryrefslogtreecommitdiff
path: root/drivers/platform/mips
diff options
context:
space:
mode:
authorFuqian Huang <huangfq.daxian@gmail.com>2019-07-04 00:29:51 +0800
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-07-29 18:31:48 +0300
commit340f25ff1d4fd3bfe0d3e0769261fec8fb32ae9f (patch)
tree593f5621bb2a51675eea21279d355a65276d35aa /drivers/platform/mips
parent4215484f8e33c8a4664aecb6db5ce2c544d3b908 (diff)
platform/x86: asus-wmi: Use kmemdup rather than duplicating its implementation
kmemdup is introduced to duplicate a region of memory in a neat way. Rather than kmalloc/kzalloc + memcpy, which the programmer needs to write the size twice (sometimes lead to mistakes), kmemdup improves readability, leads to smaller code and also reduce the chances of mistakes. Suggestion to use kmemdup rather than using kmalloc/kzalloc + memcpy. Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/mips')
0 files changed, 0 insertions, 0 deletions