Skip to content

Commit 7ffba3b

Browse files
Alex Elderdavem330
authored andcommitted
net: ipa: get rid of ipa_cmd_info->direction
The direction field of the ipa_cmd_info structure is set, but never used. It seems it might have been used for the DMA_SHARED_MEM immediate command, but the DIRECTION flag is set based on the value of the passed-in direction flag there. Anyway, remove this unused field from the ipa_cmd_info structure. This is done as a separate patch to make it very obvious that it's not required. Signed-off-by: Alex Elder <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2091c79 commit 7ffba3b

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

drivers/net/ipa/gsi_trans.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ void gsi_trans_cmd_add(struct gsi_trans *trans, void *buf, u32 size,
413413
dma_addr_t addr, enum dma_data_direction direction,
414414
enum ipa_cmd_opcode opcode)
415415
{
416-
struct ipa_cmd_info *info;
417416
u32 which = trans->used++;
418417
struct scatterlist *sg;
419418

@@ -438,9 +437,7 @@ void gsi_trans_cmd_add(struct gsi_trans *trans, void *buf, u32 size,
438437
sg_dma_address(sg) = addr;
439438
sg_dma_len(sg) = size;
440439

441-
info = &trans->info[which];
442-
info->opcode = opcode;
443-
info->direction = direction;
440+
trans->info[which].opcode = opcode;
444441
}
445442

446443
/* Add a page transfer to a transaction. It will fill the only TRE. */

drivers/net/ipa/ipa_cmd.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ enum ipa_cmd_opcode {
5050
* struct ipa_cmd_info - information needed for an IPA immediate command
5151
*
5252
* @opcode: The command opcode.
53-
* @direction: Direction of data transfer for DMA commands
5453
*/
5554
struct ipa_cmd_info {
5655
enum ipa_cmd_opcode opcode;
57-
enum dma_data_direction direction;
5856
};
5957

6058
/**

0 commit comments

Comments
 (0)