Skip to content

Commit ecf729f

Browse files
Jiapeng Chongdavem330
authored andcommitted
emulex/benet: clean up some inconsistent indenting
No functional modification involved. drivers/net/ethernet/emulex/benet/be_cmds.c:1120 be_cmd_pmac_add() warn: inconsistent indenting. Reported-by: Abaci Robot <[email protected]> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4396 Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 966b6b8 commit ecf729f

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

drivers/net/ethernet/emulex/benet/be_cmds.c

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ static int be_mcc_notify(struct be_adapter *adapter)
135135

136136
/* To check if valid bit is set, check the entire word as we don't know
137137
* the endianness of the data (old entry is host endian while a new entry is
138-
* little endian) */
138+
* little endian)
139+
*/
139140
static inline bool be_mcc_compl_is_new(struct be_mcc_compl *compl)
140141
{
141142
u32 flags;
@@ -248,7 +249,8 @@ static int be_mcc_compl_process(struct be_adapter *adapter,
248249
u8 opcode = 0, subsystem = 0;
249250

250251
/* Just swap the status to host endian; mcc tag is opaquely copied
251-
* from mcc_wrb */
252+
* from mcc_wrb
253+
*/
252254
be_dws_le_to_cpu(compl, 4);
253255

254256
base_status = base_status(compl->status);
@@ -657,8 +659,7 @@ static int be_mbox_db_ready_wait(struct be_adapter *adapter, void __iomem *db)
657659
return 0;
658660
}
659661

660-
/*
661-
* Insert the mailbox address into the doorbell in two steps
662+
/* Insert the mailbox address into the doorbell in two steps
662663
* Polls on the mbox doorbell till a command completion (or a timeout) occurs
663664
*/
664665
static int be_mbox_notify_wait(struct be_adapter *adapter)
@@ -802,7 +803,7 @@ static void be_wrb_cmd_hdr_prepare(struct be_cmd_req_hdr *req_hdr,
802803
req_hdr->subsystem = subsystem;
803804
req_hdr->request_length = cpu_to_le32(cmd_len - sizeof(*req_hdr));
804805
req_hdr->version = 0;
805-
fill_wrb_tags(wrb, (ulong) req_hdr);
806+
fill_wrb_tags(wrb, (ulong)req_hdr);
806807
wrb->payload_length = cmd_len;
807808
if (mem) {
808809
wrb->embedded |= (1 & MCC_WRB_SGE_CNT_MASK) <<
@@ -832,8 +833,8 @@ static void be_cmd_page_addrs_prepare(struct phys_addr *pages, u32 max_pages,
832833
static inline struct be_mcc_wrb *wrb_from_mbox(struct be_adapter *adapter)
833834
{
834835
struct be_dma_mem *mbox_mem = &adapter->mbox_mem;
835-
struct be_mcc_wrb *wrb
836-
= &((struct be_mcc_mailbox *)(mbox_mem->va))->wrb;
836+
struct be_mcc_wrb *wrb = &((struct be_mcc_mailbox *)(mbox_mem->va))->wrb;
837+
837838
memset(wrb, 0, sizeof(*wrb));
838839
return wrb;
839840
}
@@ -896,7 +897,7 @@ static struct be_mcc_wrb *be_cmd_copy(struct be_adapter *adapter,
896897

897898
memcpy(dest_wrb, wrb, sizeof(*wrb));
898899
if (wrb->embedded & cpu_to_le32(MCC_WRB_EMBEDDED_MASK))
899-
fill_wrb_tags(dest_wrb, (ulong) embedded_payload(wrb));
900+
fill_wrb_tags(dest_wrb, (ulong)embedded_payload(wrb));
900901

901902
return dest_wrb;
902903
}
@@ -1114,7 +1115,7 @@ int be_cmd_pmac_add(struct be_adapter *adapter, const u8 *mac_addr,
11141115
err:
11151116
mutex_unlock(&adapter->mcc_lock);
11161117

1117-
if (base_status(status) == MCC_STATUS_UNAUTHORIZED_REQUEST)
1118+
if (base_status(status) == MCC_STATUS_UNAUTHORIZED_REQUEST)
11181119
status = -EPERM;
11191120

11201121
return status;
@@ -1803,7 +1804,7 @@ int be_cmd_get_fat_dump(struct be_adapter *adapter, u32 buf_len, void *buf)
18031804

18041805
total_size = buf_len;
18051806

1806-
get_fat_cmd.size = sizeof(struct be_cmd_req_get_fat) + 60*1024;
1807+
get_fat_cmd.size = sizeof(struct be_cmd_req_get_fat) + 60 * 1024;
18071808
get_fat_cmd.va = dma_alloc_coherent(&adapter->pdev->dev,
18081809
get_fat_cmd.size,
18091810
&get_fat_cmd.dma, GFP_ATOMIC);
@@ -1813,7 +1814,7 @@ int be_cmd_get_fat_dump(struct be_adapter *adapter, u32 buf_len, void *buf)
18131814
mutex_lock(&adapter->mcc_lock);
18141815

18151816
while (total_size) {
1816-
buf_size = min(total_size, (u32)60*1024);
1817+
buf_size = min(total_size, (u32)60 * 1024);
18171818
total_size -= buf_size;
18181819

18191820
wrb = wrb_from_mccq(adapter);
@@ -3362,7 +3363,7 @@ int be_cmd_ddr_dma_test(struct be_adapter *adapter, u64 pattern,
33623363
req->pattern = cpu_to_le64(pattern);
33633364
req->byte_count = cpu_to_le32(byte_cnt);
33643365
for (i = 0; i < byte_cnt; i++) {
3365-
req->snd_buff[i] = (u8)(pattern >> (j*8));
3366+
req->snd_buff[i] = (u8)(pattern >> (j * 8));
33663367
j++;
33673368
if (j > 7)
33683369
j = 0;
@@ -3846,7 +3847,7 @@ int be_cmd_set_mac_list(struct be_adapter *adapter, u8 *mac_array,
38463847
req->hdr.domain = domain;
38473848
req->mac_count = mac_count;
38483849
if (mac_count)
3849-
memcpy(req->mac, mac_array, ETH_ALEN*mac_count);
3850+
memcpy(req->mac, mac_array, ETH_ALEN * mac_count);
38503851

38513852
status = be_mcc_notify_wait(adapter);
38523853

0 commit comments

Comments
 (0)