Skip to content

Commit a224bd4

Browse files
Alex Elderdavem330
authored andcommitted
net: ipa: use data space for command opcodes
The 64-bit data field in a transaction is not used for commands. And the opcode array is *only* used for commands. They're (currently) the same size; save a little space in the transaction structure by enclosing the two fields in a union. Signed-off-by: Alex Elder <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8797972 commit a224bd4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/ipa/gsi_trans.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ struct gsi_trans {
6060
u8 used; /* # entries used in sgl[] */
6161
u32 len; /* total # bytes across sgl[] */
6262

63-
void *data;
64-
u8 cmd_opcode[IPA_COMMAND_TRANS_TRE_MAX];
63+
union {
64+
void *data;
65+
u8 cmd_opcode[IPA_COMMAND_TRANS_TRE_MAX];
66+
};
6567
struct scatterlist *sgl;
6668
enum dma_data_direction direction;
6769

0 commit comments

Comments
 (0)