diff options
author | Andra Paraschiv <andraprs@amazon.com> | 2021-08-27 18:49:30 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-14 11:11:20 +0200 |
commit | da1c396a81b87541cf7a7c2c6e128b722461a1c8 (patch) | |
tree | 99f5c910b34457fd9da13a05e09af9dfb621eabd /samples | |
parent | 059ebe4fe332c5d1c25124166527cdf9fe43a3ce (diff) | |
download | linux-rpi-da1c396a81b87541cf7a7c2c6e128b722461a1c8.tar.gz linux-rpi-da1c396a81b87541cf7a7c2c6e128b722461a1c8.tar.bz2 linux-rpi-da1c396a81b87541cf7a7c2c6e128b722461a1c8.zip |
nitro_enclaves: Add fixes for checkpatch blank line reports
Remove blank lines that are not necessary, fixing the checkpatch script
reports. While at it, add a blank line after the switch default block,
similar to the other parts of the codebase.
Reviewed-by: George-Aurelian Popescu <popegeo@amazon.com>
Signed-off-by: Andra Paraschiv <andraprs@amazon.com>
Link: https://lore.kernel.org/r/20210827154930.40608-8-andraprs@amazon.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/nitro_enclaves/ne_ioctl_sample.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samples/nitro_enclaves/ne_ioctl_sample.c b/samples/nitro_enclaves/ne_ioctl_sample.c index 6a60990b2e20..765b131c7319 100644 --- a/samples/nitro_enclaves/ne_ioctl_sample.c +++ b/samples/nitro_enclaves/ne_ioctl_sample.c @@ -185,7 +185,6 @@ static int ne_create_vm(int ne_dev_fd, unsigned long *slot_uid, int *enclave_fd) return 0; } - /** * ne_poll_enclave_fd() - Thread function for polling the enclave fd. * @data: Argument provided for the polling function. @@ -560,8 +559,8 @@ static int ne_add_vcpu(int enclave_fd, unsigned int *vcpu_id) default: printf("Error in add vcpu [%m]\n"); - } + return rc; } |