* [PATCH] scsi: fnic: Fix indentation and remove unnecessary parenthesis
@ 2025-02-25 21:50 Karan Tilak Kumar
2025-03-04 3:06 ` Martin K. Petersen
0 siblings, 1 reply; 3+ messages in thread
From: Karan Tilak Kumar @ 2025-02-25 21:50 UTC (permalink / raw)
To: sebaddel
Cc: arulponn, djhawar, gcboffa, mkai2, satishkh, aeasi, jejb,
martin.petersen, linux-scsi, linux-kernel, Karan Tilak Kumar,
kernel test robot, Dan Carpenter
Fix indentation in fdls_disc.c to fix kernel test robot warnings.
Remove unnecessary parentheses to fix checkpatch check.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202502141403.1PcpwyJp-lkp@intel.com/
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202502141403.1PcpwyJp-lkp@intel.com/
Fixes: a63e78eb2b0f ("scsi: fnic: Add support for fabric based solicited requests and responses")
Reviewed-by: Sesidhar Baddela <sebaddel@cisco.com>
Reviewed-by: Arulprabhu Ponnusamy <arulponn@cisco.com>
Reviewed-by: Gian Carlo Boffa <gcboffa@cisco.com>
Reviewed-by: Arun Easi <aeasi@cisco.com>
Signed-off-by: Karan Tilak Kumar <kartilak@cisco.com>
---
drivers/scsi/fnic/fdls_disc.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/drivers/scsi/fnic/fdls_disc.c b/drivers/scsi/fnic/fdls_disc.c
index d12caede8919..ff9ba7cafc01 100644
--- a/drivers/scsi/fnic/fdls_disc.c
+++ b/drivers/scsi/fnic/fdls_disc.c
@@ -318,8 +318,8 @@ void fdls_schedule_oxid_free_retry_work(struct work_struct *work)
"Schedule oxid free. oxid idx: %d\n", idx);
spin_unlock_irqrestore(&fnic->fnic_lock, fnic->lock_flags);
- reclaim_entry = (struct reclaim_entry_s *)
- kzalloc(sizeof(struct reclaim_entry_s), GFP_KERNEL);
+ reclaim_entry = (struct reclaim_entry_s *)
+ kzalloc(sizeof(struct reclaim_entry_s), GFP_KERNEL);
spin_lock_irqsave(&fnic->fnic_lock, fnic->lock_flags);
if (!reclaim_entry) {
@@ -338,7 +338,7 @@ void fdls_schedule_oxid_free_retry_work(struct work_struct *work)
/* unlikely scenario, free the allocated memory and continue */
kfree(reclaim_entry);
}
-}
+ }
spin_unlock_irqrestore(&fnic->fnic_lock, fnic->lock_flags);
}
@@ -1563,9 +1563,9 @@ void fdls_send_fabric_logo(struct fnic_iport_s *iport)
iport->fabric.flags &= ~FNIC_FDLS_FABRIC_ABORT_ISSUED;
- FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num,
- "0x%x: FDLS send fabric LOGO with oxid: 0x%x",
- iport->fcid, oxid);
+ FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num,
+ "0x%x: FDLS send fabric LOGO with oxid: 0x%x",
+ iport->fcid, oxid);
fnic_send_fcoe_frame(iport, frame, frame_size);
@@ -4655,13 +4655,13 @@ fnic_fdls_validate_and_get_frame_type(struct fnic_iport_s *iport,
d_id = ntoh24(fchdr->fh_d_id);
/* some common validation */
- if (fdls_get_state(fabric) > FDLS_STATE_FABRIC_FLOGI) {
- if ((iport->fcid != d_id) || (!FNIC_FC_FRAME_CS_CTL(fchdr))) {
- FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num,
- "invalid frame received. Dropping frame");
- return -1;
- }
+ if (fdls_get_state(fabric) > FDLS_STATE_FABRIC_FLOGI) {
+ if (iport->fcid != d_id || (!FNIC_FC_FRAME_CS_CTL(fchdr))) {
+ FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num,
+ "invalid frame received. Dropping frame");
+ return -1;
}
+ }
/* BLS ABTS response */
if ((fchdr->fh_r_ctl == FC_RCTL_BA_ACC)
@@ -4678,7 +4678,7 @@ fnic_fdls_validate_and_get_frame_type(struct fnic_iport_s *iport,
"Received unexpected ABTS RSP(oxid:0x%x) from 0x%x. Dropping frame",
oxid, s_id);
return -1;
- }
+ }
return FNIC_FABRIC_BLS_ABTS_RSP;
} else if (fdls_is_oxid_fdmi_req(oxid)) {
return FNIC_FDMI_BLS_ABTS_RSP;
--
2.47.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] scsi: fnic: Fix indentation and remove unnecessary parenthesis
2025-02-25 21:50 [PATCH] scsi: fnic: Fix indentation and remove unnecessary parenthesis Karan Tilak Kumar
@ 2025-03-04 3:06 ` Martin K. Petersen
2025-03-04 3:10 ` Karan Tilak Kumar (kartilak)
0 siblings, 1 reply; 3+ messages in thread
From: Martin K. Petersen @ 2025-03-04 3:06 UTC (permalink / raw)
To: Karan Tilak Kumar
Cc: sebaddel, arulponn, djhawar, gcboffa, mkai2, satishkh, aeasi,
jejb, martin.petersen, linux-scsi, linux-kernel,
kernel test robot, Dan Carpenter
Karan,
> Fix indentation in fdls_disc.c to fix kernel test robot warnings.
> Remove unnecessary parentheses to fix checkpatch check.
Applied to 6.15/scsi-staging, thanks!
PS. Next time, please send your fixes as a patch series.
--
Martin K. Petersen Oracle Linux Engineering
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] scsi: fnic: Fix indentation and remove unnecessary parenthesis
2025-03-04 3:06 ` Martin K. Petersen
@ 2025-03-04 3:10 ` Karan Tilak Kumar (kartilak)
0 siblings, 0 replies; 3+ messages in thread
From: Karan Tilak Kumar (kartilak) @ 2025-03-04 3:10 UTC (permalink / raw)
To: Martin K. Petersen
Cc: Sesidhar Baddela (sebaddel), Arulprabhu Ponnusamy (arulponn),
Dhanraj Jhawar (djhawar), Gian Carlo Boffa (gcboffa),
Masa Kai (mkai2), Satish Kharat (satishkh), Arun Easi (aeasi),
jejb@linux.ibm.com, linux-scsi@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel test robot, Dan Carpenter
On Monday, March 3, 2025 7:07 PM, Martin K. Petersen <martin.petersen@oracle.com> wrote:
>
>
> Karan,
>
> > Fix indentation in fdls_disc.c to fix kernel test robot warnings.
> > Remove unnecessary parentheses to fix checkpatch check.
>
> Applied to 6.15/scsi-staging, thanks!
>
> PS. Next time, please send your fixes as a patch series.
>
> --
> Martin K. Petersen Oracle Linux Engineering
>
Thanks Martin. Sure, I'll keep that in mind.
Sorry for the inconvenience.
Regards,
Karan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-04 3:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 21:50 [PATCH] scsi: fnic: Fix indentation and remove unnecessary parenthesis Karan Tilak Kumar
2025-03-04 3:06 ` Martin K. Petersen
2025-03-04 3:10 ` Karan Tilak Kumar (kartilak)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox