Re: [PATCH] scsi: sym53c8xx_2: fix sizeof mismatch

2020-10-13 Thread Martin K. Petersen
On Tue, 6 Oct 2020 12:02:52 +0100, Colin King wrote: > An incorrect sizeof is being used, struct sym_ccb ** is not correct, > it should be struct sym_ccb *. Note that since ** is the same size as > * this is not causing any issues. Improve this fix by using the > idiom sizeof(*np->ccbh) as this a

Re: [PATCH] scsi: sym53c8xx_2: fix sizeof mismatch

2020-10-07 Thread Martin K. Petersen
Colin, > An incorrect sizeof is being used, struct sym_ccb ** is not correct, > it should be struct sym_ccb *. Note that since ** is the same size as > * this is not causing any issues. Improve this fix by using the idiom > sizeof(*np->ccbh) as this allows one to not even reference the type of

[PATCH] scsi: sym53c8xx_2: fix sizeof mismatch

2020-10-06 Thread Colin King
From: Colin Ian King An incorrect sizeof is being used, struct sym_ccb ** is not correct, it should be struct sym_ccb *. Note that since ** is the same size as * this is not causing any issues. Improve this fix by using the idiom sizeof(*np->ccbh) as this allows one to not even reference the typ