diff options
author | Felipe Franciosi <felipe@nutanix.com> | 2019-11-02 05:53:53 +0000 |
---|---|---|
committer | Felipe Franciosi <felipe@nutanix.com> | 2019-11-02 06:37:05 +0000 |
commit | 08d1f382ba4067284c027adb7daf0baf7d3969c9 (patch) | |
tree | 4c4617da945c9279e42c5cbe5b45b59c561621ad /kmod | |
parent | be9dcc0364b43f4b0dc954412296a1a867b289e4 (diff) | |
download | libvfio-user-08d1f382ba4067284c027adb7daf0baf7d3969c9.zip libvfio-user-08d1f382ba4067284c027adb7daf0baf7d3969c9.tar.gz libvfio-user-08d1f382ba4067284c027adb7daf0baf7d3969c9.tar.bz2 |
Fix various format issues
Remove various spurious whitespaces and empty lines. Some other
alignment issues, too.
Signed-off-by: Felipe Franciosi <felipe@nutanix.com>
Diffstat (limited to 'kmod')
-rw-r--r-- | kmod/CMakeLists.txt | 2 | ||||
-rw-r--r-- | kmod/muser.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/kmod/CMakeLists.txt b/kmod/CMakeLists.txt index 74d3047..685cf2b 100644 --- a/kmod/CMakeLists.txt +++ b/kmod/CMakeLists.txt @@ -15,7 +15,7 @@ # * Neither the name of Nutanix nor the names of its contributors may be # used to endorse or promote products derived from this software without # specific prior written permission. -# +# # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE diff --git a/kmod/muser.c b/kmod/muser.c index f0b4700..2102c09 100644 --- a/kmod/muser.c +++ b/kmod/muser.c @@ -441,7 +441,6 @@ static void unpin_pages(struct page_map *const pg_map) pg_map->pages = NULL; } - static int vm_insert_pages(struct vm_area_struct *const vma, struct page *const pages[], const int nr_pages) { @@ -1006,7 +1005,7 @@ static ssize_t muser_read(struct mdev_device *mdev, char __user *buf, _count = err; else _count = mucmd.muser_cmd.err; - + if (_count < 0) muser_dbg("failed to process read: %d, %d\n", err, mucmd.muser_cmd.err); |