Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752072AbbF3VgR (ORCPT ); Tue, 30 Jun 2015 17:36:17 -0400 Received: from sender1.zohomail.com ([74.201.84.158]:21504 "EHLO sender153-mail.zoho.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751643AbbF3VgL (ORCPT ); Tue, 30 Jun 2015 17:36:11 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=to:cc:from:subject:message-id:date:user-agent:mime-version:content-type; b=oVwdyYarMuz2FQ5ybl3Z6qLoa0DG/Ha9Wpals7/NHyei8hDq6L2WHwHUxFMv0SAHJP/MxFeR6gxe X24+3O5sqZx0KggD/rbNUNmtSFQpiS5RFrtoMgv0NZJtEB1+Mesb To: benjamin.romer@unisys.com, david.kershner@unisys.com, bryan.thompson@unisys.com, erik.arfvidson@unisys.com, devel@driverdev.osuosl.org Cc: gregkh@linuxfoundation.org, sparmaintainer@unisys.com, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org From: Sohny Thomas Subject: [PATCH] Staging: unisys: virtpci: fixed a brace coding style issue Message-ID: <55930BB1.10502@zoho.com> Date: Wed, 1 Jul 2015 03:05:45 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1316 Lines: 46 FIX 2 unnecessary braces found by checkpatch.pl Signed-off-by: Sohny Thomas --- drivers/staging/unisys/virtpci/virtpci.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/staging/unisys/virtpci/virtpci.c b/drivers/staging/unisys/virtpci/virtpci.c index d5ad017..f3674de 100644 --- a/drivers/staging/unisys/virtpci/virtpci.c +++ b/drivers/staging/unisys/virtpci/virtpci.c @@ -190,9 +190,10 @@ static int write_vbus_chp_info(struct spar_vbus_channel_protocol *chan, return -1; off = sizeof(struct channel_header) + chan->hdr_info.chp_info_offset; - if (chan->hdr_info.chp_info_offset == 0) { + + if (chan->hdr_info.chp_info_offset == 0) return -1; - } + memcpy(((u8 *)(chan)) + off, info, sizeof(*info)); return 0; } @@ -484,10 +485,10 @@ static int delete_vhba(struct del_virt_guestpart *delparams) i = virtpci_device_del(NULL /*no parent bus */, VIRTHBA_TYPE, &scsi.wwnn, NULL); - if (i) { + if (i) return 1; - } - return 0; + else + return 0; } /* deletes a vnic -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/