diff mbox series

xen/x86: Remove parentheses from return arguments

Message ID 20200329063747.GA13063@simran-Inspiron-5558 (mailing list archive)
State New, archived
Headers show
Series xen/x86: Remove parentheses from return arguments | expand

Commit Message

Simran Singhal March 29, 2020, 6:37 a.m. UTC
This patch remove unnecessary parentheses from return arguments.

Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
---
 xen/arch/x86/cpu/mcheck/mctelem.c | 2 +-
 xen/arch/x86/hvm/irq.c            | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

Wei Liu March 29, 2020, 1:49 p.m. UTC | #1
On Sun, Mar 29, 2020 at 12:07:47PM +0530, Simran Singhal wrote:
> This patch remove unnecessary parentheses from return arguments.
> 
> Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>

Reviewed-by: Wei Liu <wl@xen.org>
Jan Beulich March 30, 2020, 11:06 a.m. UTC | #2
On 29.03.2020 15:49, Wei Liu wrote:
> On Sun, Mar 29, 2020 at 12:07:47PM +0530, Simran Singhal wrote:
>> This patch remove unnecessary parentheses from return arguments.
>>
>> Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
> 
> Reviewed-by: Wei Liu <wl@xen.org>

Acked-by: Jan Beulich <jbeulich@suse.com>
diff mbox series

Patch

diff --git a/xen/arch/x86/cpu/mcheck/mctelem.c b/xen/arch/x86/cpu/mcheck/mctelem.c
index 012a9b95e5..329ac20faf 100644
--- a/xen/arch/x86/cpu/mcheck/mctelem.c
+++ b/xen/arch/x86/cpu/mcheck/mctelem.c
@@ -382,7 +382,7 @@  mctelem_cookie_t mctelem_reserve(mctelem_class_t which)
 
 		if (bit >= MC_NENT) {
 			mctelem_drop_count++;
-			return (NULL);
+			return NULL;
 		}
 
 		/* try to allocate, atomically clear free bit */
diff --git a/xen/arch/x86/hvm/irq.c b/xen/arch/x86/hvm/irq.c
index b3ee0d9130..9c8adbc495 100644
--- a/xen/arch/x86/hvm/irq.c
+++ b/xen/arch/x86/hvm/irq.c
@@ -693,7 +693,7 @@  static int irq_save_isa(struct vcpu *v, hvm_domain_context_t *h)
     struct hvm_irq *hvm_irq = hvm_domain_irq(d);
 
     /* Save ISA IRQ lines */
-    return ( hvm_save_entry(ISA_IRQ, 0, h, &hvm_irq->isa_irq) );
+    return hvm_save_entry(ISA_IRQ, 0, h, &hvm_irq->isa_irq);
 }
 
 static int irq_save_link(struct vcpu *v, hvm_domain_context_t *h)
@@ -702,7 +702,7 @@  static int irq_save_link(struct vcpu *v, hvm_domain_context_t *h)
     struct hvm_irq *hvm_irq = hvm_domain_irq(d);
 
     /* Save PCI-ISA link state */
-    return ( hvm_save_entry(PCI_LINK, 0, h, &hvm_irq->pci_link) );
+    return hvm_save_entry(PCI_LINK, 0, h, &hvm_irq->pci_link);
 }
 
 static int irq_load_pci(struct domain *d, hvm_domain_context_t *h)