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 /lib/libmuser.c | |
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 'lib/libmuser.c')
-rw-r--r-- | lib/libmuser.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libmuser.c b/lib/libmuser.c index d7f62a5..9ba163e 100644 --- a/lib/libmuser.c +++ b/lib/libmuser.c @@ -648,7 +648,7 @@ lm_get_region(const loff_t pos, const size_t count, loff_t * const off) r = offset_to_region(pos); if (offset_to_region(pos + count) != r) { - return -ENOENT; + return -ENOENT; } *off = pos - region_to_offset(r); return r; @@ -707,7 +707,7 @@ do_access(lm_ctx_t * const lm_ctx, char * const buf, size_t count, loff_t pos, if (idx < 0 || idx >= LM_DEV_NUM_REGS) { lm_log(lm_ctx, LM_ERR, "bad region %d\n", idx); return -EINVAL; - } + } if (idx == LM_DEV_CFG_REG_IDX) { return handle_pci_config_space_access(lm_ctx, buf, count, offset, @@ -781,7 +781,6 @@ lm_access(lm_ctx_t * const lm_ctx, char *buf, size_t count, return done; } - static inline int muser_access(lm_ctx_t * const lm_ctx, struct muser_cmd *const cmd, const bool is_write) @@ -1116,7 +1115,7 @@ lm_caps_init(lm_ctx_t *lm_ctx, lm_cap_t *caps, int nr_caps) } lm_ctx->pci_config_space->hdr.sts.cl = 0x1; - lm_ctx->pci_config_space->hdr.cap = PCI_STD_HEADER_SIZEOF; + lm_ctx->pci_config_space->hdr.cap = PCI_STD_HEADER_SIZEOF; return 0; } |