summaryrefslogtreecommitdiff
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorXianbin Zhu <xianzhu@codeaurora.org>2019-06-12 18:50:00 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2019-06-17 07:23:00 -0700
commitbe5afd9343144056399bfd12c6516a05bd0b8c67 (patch)
treef81f9c99e1ec7022aeeb101a10b6b608303a66b4 /kernel/sysctl.c
parentcc47c2c325b969c2be3f81cd43d16ecf5c1e41d9 (diff)
i2c: refine the driver of i2c virtualization
1. there's no need to allocate buffer for virtio_i2c_req every time when it comes to data transmission, we can prepare this buffer at probe stage. 2. we need to add some input parameter checking for avoiding security risks. 3. refine the code to reduce the number of judgement statements. Change-Id: Idb6ae8bb632c1a3032c6ba04de6ebb460f1e1a5c Signed-off-by: Xianbin Zhu <xianzhu@codeaurora.org>
Diffstat (limited to 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions