Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2192668ybb; Sat, 21 Mar 2020 15:22:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs5OvA0s0iCbf/oe4iKXXVyalza99EDPvZwQXiFlx8HzI4OgfaxtXJeaPS9y3kK5KrCmFfI X-Received: by 2002:aca:4d47:: with SMTP id a68mr12727468oib.56.1584829341315; Sat, 21 Mar 2020 15:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584829341; cv=none; d=google.com; s=arc-20160816; b=zG0pebZwwMjnoKMCd2E3O+VadeElQGguXio+MUrfaZFyXRFuzUROUUEXHhagbq27nO 089nsm5314AIqiXYhK9RVu5CCeU5k/y2R4NSQF0gP4ED/5YX5zwVFqMRupW+W3P68spZ uPB0UKHc0uYTs70Bk9j/i42Zs8o6QthhdSxlzRHO+dR/Q4e3Tpu2FhmLBZzu5w80hG1p uU13t58XBfiAEOhscRfs5YQE+wHsdoPKlCZoNQd7cjmqTO3gsHPSB01SLom0njbRNg1v EeajC2nelRsQJ4oSoAZuTJl/QQzsar7SbfTcU387kXnGM0F/XrHRvT/qnREaPCT+jJ2C Tu6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=YDt1O5yGZ6i7riNKjtcBfBSe+BjizbdVsG1m7rWg6PY=; b=e0XFXegUGNlWkisM+ctv+jSwoYFH8oxJnx48DCqWQBqJCNbdTSZBs3xcbQMnBTmJSu 7lw1hX+jowhoIdNBG8OsxLjTykNkjQteoRvPOldT4IrkGbCiYLjNV5Rj4ZE0Yq+7fLfB r8injrMF3rATADOWzmdDiebXi/7U/z4FvbqwwDa2ylsao6mJnqV0KHcAktPSXyuvoBaQ sUeVP8Bc5FGMiOshRQEloDoJtk3VgfVrZ62nVnfgtnPV+tqm9u9ss1NOCVGfi+y6X3qA HEah89C0POc2IQVSlRGcZPDORXjxFBVIGtvtxY/5N82C3iHKjZncxOKYNlLQyQo/ZjEC JAYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lWH71JTF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 18si5228489oie.242.2020.03.21.15.22.09; Sat, 21 Mar 2020 15:22:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=lWH71JTF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728144AbgCUWVV (ORCPT + 99 others); Sat, 21 Mar 2020 18:21:21 -0400 Received: from mail-pj1-f66.google.com ([209.85.216.66]:36336 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727258AbgCUWVV (ORCPT ); Sat, 21 Mar 2020 18:21:21 -0400 Received: by mail-pj1-f66.google.com with SMTP id nu11so4179364pjb.1 for ; Sat, 21 Mar 2020 15:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YDt1O5yGZ6i7riNKjtcBfBSe+BjizbdVsG1m7rWg6PY=; b=lWH71JTFjmKdK1+WU7n32xi2rrAA3ia70j/TFYjfkM7i3bGTNvL5LQDvKn7kGc/Loj raS1GoaViYA5+yZFdhoeL5mpeVH/8Td6a+JiKqg98w8eESkAwGxlij3Bd2CXFcKRvKH/ D5f4f3J5N9c4bC8Qf6H7y68oLs/tBUxblHULQWksmeWcX55QexQs4TNYOJKXDhZS19Fz 4N5/ZnPOEyoeGsq+oDXw058zvqlyIde0mJpkWnPa+1JyFIZcvzxa7SZWW3f7csjlWdQh s2K+EtHEsdQEkicgWCRb/HkssUG7tGtuUf7pGl+PkrPoDHBdrKCzVMMRGXn5aV0p9uAX 8v+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YDt1O5yGZ6i7riNKjtcBfBSe+BjizbdVsG1m7rWg6PY=; b=UYz6hfaBfCExlOMG0pSfX2ym1v+wf22rPpKssz/9Nmju8wT4TTt0ERhRG/lHJ5lkuS QKXX31I/RIxpOzKs8eOHYHeJhdVwjOO3K5KvMdpHztcDmnautmODsQIMRCzYLeW5NVvQ JCLQpRJP8Xbddis05FkRBNuclGUKe9RBJyR4aUuzDKDOGL46no472/Q7o7OaMQPN+HFW VCVwfS4tNe6NhHiHX5s3obXYEMb1EYv9SyHltfq3zR7KonfvN2PD4AgF7KgE6jVlnK3+ HcR46BHXJDG+CiH5P66AE6ZvecoPX/3C8OBZEk8CpZ05s4u3L9PotL95YOG3gEAdtSO7 +6cw== X-Gm-Message-State: ANhLgQ1Fjz6UaK/gX89d8taDDB2L0RXEIUOn42qg837TWyV+qIaqTJu5 5/GHXZDAuoBBI4V58deG71Y= X-Received: by 2002:a17:90a:21ac:: with SMTP id q41mr17311989pjc.41.1584829280895; Sat, 21 Mar 2020 15:21:20 -0700 (PDT) Received: from localhost.localdomain ([113.193.33.115]) by smtp.gmail.com with ESMTPSA id w19sm8744669pgm.27.2020.03.21.15.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Mar 2020 15:21:20 -0700 (PDT) From: Shreeya Patel To: Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Cc: Shreeya Patel Subject: [Outreachy kernel] [PATCH 01/11] Staging: rtl8188eu: hal_com: Add space around operators Date: Sun, 22 Mar 2020 03:51:13 +0530 Message-Id: <19950c71482b3be0dd9518398af85e964f3b66b1.1584826154.git.shreeya.patel23498@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add space around operators for improving the code readability. Reported by checkpatch.pl git diff -w shows no difference. diff of the .o files before and after the changes shows no difference. Signed-off-by: Shreeya Patel --- shreeya@Shreeya-Patel:~git/kernels/staging$ git diff -w drivers/staging/rtl8188eu/hal/hal_com.c shreeya@Shreeya-Patel:~git/kernels/staging$ shreeya@Shreeya-Patel:~git/kernels/staging/drivers/staging/rtl8188eu/hal$ diff hal_com_old.o hal_com.o shreeya@Shreeya-Patel:~git/kernels/staging/drivers/staging/rtl8188eu/hal$ drivers/staging/rtl8188eu/hal/hal_com.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/rtl8188eu/hal/hal_com.c b/drivers/staging/rtl8188eu/hal/hal_com.c index 95f1b1431373..ebe19e076ff2 100644 --- a/drivers/staging/rtl8188eu/hal/hal_com.c +++ b/drivers/staging/rtl8188eu/hal/hal_com.c @@ -18,26 +18,26 @@ void dump_chip_info(struct HAL_VERSION chip_vers) uint cnt = 0; char buf[128]; - cnt += sprintf((buf+cnt), "Chip Version Info: CHIP_8188E_"); - cnt += sprintf((buf+cnt), "%s_", chip_vers.ChipType == NORMAL_CHIP ? + cnt += sprintf((buf + cnt), "Chip Version Info: CHIP_8188E_"); + cnt += sprintf((buf + cnt), "%s_", chip_vers.ChipType == NORMAL_CHIP ? "Normal_Chip" : "Test_Chip"); - cnt += sprintf((buf+cnt), "%s_", chip_vers.VendorType == CHIP_VENDOR_TSMC ? + cnt += sprintf((buf + cnt), "%s_", chip_vers.VendorType == CHIP_VENDOR_TSMC ? "TSMC" : "UMC"); if (chip_vers.CUTVersion == A_CUT_VERSION) - cnt += sprintf((buf+cnt), "A_CUT_"); + cnt += sprintf((buf + cnt), "A_CUT_"); else if (chip_vers.CUTVersion == B_CUT_VERSION) - cnt += sprintf((buf+cnt), "B_CUT_"); + cnt += sprintf((buf + cnt), "B_CUT_"); else if (chip_vers.CUTVersion == C_CUT_VERSION) - cnt += sprintf((buf+cnt), "C_CUT_"); + cnt += sprintf((buf + cnt), "C_CUT_"); else if (chip_vers.CUTVersion == D_CUT_VERSION) - cnt += sprintf((buf+cnt), "D_CUT_"); + cnt += sprintf((buf + cnt), "D_CUT_"); else if (chip_vers.CUTVersion == E_CUT_VERSION) - cnt += sprintf((buf+cnt), "E_CUT_"); + cnt += sprintf((buf + cnt), "E_CUT_"); else - cnt += sprintf((buf+cnt), "UNKNOWN_CUT(%d)_", + cnt += sprintf((buf + cnt), "UNKNOWN_CUT(%d)_", chip_vers.CUTVersion); - cnt += sprintf((buf+cnt), "1T1R_"); - cnt += sprintf((buf+cnt), "RomVer(0)\n"); + cnt += sprintf((buf + cnt), "1T1R_"); + cnt += sprintf((buf + cnt), "RomVer(0)\n"); pr_info("%s", buf); } -- 2.17.1