efi/capsule: Adjust return type of efi_capsule_setup_info()
authorJan Kiszka <[email protected]>
Fri, 2 Jun 2017 13:51:59 +0000 (13:51 +0000)
committerIngo Molnar <[email protected]>
Mon, 5 Jun 2017 15:50:39 +0000 (17:50 +0200)
We actually expect int at the caller and never return any size
information.

Signed-off-by: Jan Kiszka <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Matt Fleming <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
drivers/firmware/efi/capsule-loader.c

index 3fb91e1597a9233eddc7fd6b4b9ea20fe8b6934b..37d3f6ec2d285aa898ff2075b9e1ded9e1838ce7 100644 (file)
@@ -53,8 +53,8 @@ static void efi_free_all_buff_pages(struct capsule_info *cap_info)
  * @kbuff: a mapped first page buffer pointer
  * @hdr_bytes: the total received number of bytes for efi header
  **/
-static ssize_t efi_capsule_setup_info(struct capsule_info *cap_info,
-                                     void *kbuff, size_t hdr_bytes)
+static int efi_capsule_setup_info(struct capsule_info *cap_info,
+                                 void *kbuff, size_t hdr_bytes)
 {
        efi_capsule_header_t *cap_hdr;
        size_t pages_needed;