Skip to contentSkip to conversation

Staging: ccree: ssi_aead.h: Fixed a pointer declaration error.

PATCH In review srishti sharma 2 participants 3 messages Jun 2, 2017 – Jun 3, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: ccree: ssi_aead.h: Fixed a pointer declaration error.

Fixed a pointer declaration error , the dereferencing operator was misplaced.

---
 drivers/staging/ccree/ssi_aead.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/ccree/ssi_aead.h +0 -0
index 654a181..9cf5225 100644
@@ -97,8 +97,8 @@ struct aead_req_ctx {
	struct ssi_mlli assoc;
	struct ssi_mlli src;
	struct ssi_mlli dst;
-	struct scatterlist* srcSgl;
-	struct scatterlist* dstSgl;
+	struct scatterlist *srcSgl;
+	struct scatterlist *dstSgl;
	unsigned int srcOffset;
	unsigned int dstOffset;
	enum ssi_req_dma_buf_type assoc_buff_type;

--
2.7.4

maintainer
#1 lore raw
Quoted 1 line · srishti sharma

Fixed a pointer declaration error , the dereferencing operator was misplaced.

Odd use of a ,

Also, I don't understand what was "misplaced" here? There does not seem to be a "error" fixed here...

#2 lore raw

Hey,

checkpatch.pl generated two errors , because the dereferencing operator was placed next to the structure name instead of being placed with the pointer .

for eg:
struct scatterlist* srcSgl; (this was giving an error)

whereas
struct scatterlist *srcSgl; (this did not give an error)

Both of them will compile , but the second one is a better representation of it and does not produce an error on running checkpatch.pl .

Regards,
Srishti

Quoted 8 lines · Greg KH
Quoted 1 line · srishti sharma

Fixed a pointer declaration error , the dereferencing operator was misplaced.

Odd use of a ,

Also, I don't understand what was "misplaced" here? There does not seem to be a "error" fixed here...