kmemdup has implemented the function that kmalloc() + memcpy().
We prefer to kmemdup rather than code opened implementation.
This issue was detected with the help of coccinelle.
Signed-off-by: Wen Yang
CC: Hannes Reinecke
CC: "James E.J. Bottomley"
CC: "Martin K. Petersen&q
kmemdup has implemented the function that kmalloc() + memcpy().
We prefer to kmemdup rather than code opened implementation.
This issue was detected with the help of coccinelle.
Signed-off-by: Wen Yang
CC: Hannes Reinecke
CC: "James E.J. Bottomley"
CC: "Martin K. Petersen&q
kmemdup has implemented the function that kmalloc() + memcpy().
We prefer to kmemdup rather than code opened implementation.
This issue was detected with the help of coccinelle.
Signed-off-by: Wen Yang
CC: Sathya Prakash
CC: Chaitra P B
CC: Suganath Prabu Subramani
CC: mpt-fusionlinux
kfree(NULL) is safe, so removes NULL check before freeing the mem.
This patch also fix the ifnullfree.cocci warnings.
Signed-off-by: Wen Yang
CC: Alex Deucher
CC: Hannes Reinecke
CC: "James E.J. Bottomley"
CC: "Martin K. Petersen"
CC: linux-scsi@vger.kern
ep parameter into
the wd719x_chip_init() function. When we have spinlock and
can't sleep, we pass in 0; in other cases, we pass in 1.
Signed-off-by: Wen Yang
CC: "James E.J. Bottomley"
CC: "Martin K. Petersen"
CC: linux-scsi@vger.kernel.org
CC: linux-ker...@vger.kern
line 1827
Signed-off-by: Wen Yang
CC: Julia Lawall
CC: "James E.J. Bottomley"
CC: "Martin K. Petersen"
CC: Willem Riede
CC: Kashyap Desai
CC: Shivasharan S
CC: linux-scsi@vger.kernel.org
CC: linux-ker...@vger.kernel.org
---
drivers/scsi/megaraid/megaraid_sas_base.c |
: Unneeded semicolon
drivers/scsi/aha1542.c:640:2-3: Unneeded semicolon
drivers/scsi/aha1542.c:464:3-4: Unneeded semicolon
drivers/scsi/aha1542.c:476:2-3: Unneeded semicolon
drivers/scsi/aha1542.c:506:2-3: Unneeded semicolon
Generated by: scripts/coccinelle/misc/semicolon.cocci
Signed-off-by: Wen Yang
CC
PTR_ERR_OR_ZERO has implemented the same function, so use inlined function
instead of open coded equivalent.
Signed-off-by: Wen Yang
CC: "James E.J. Bottomley"
CC: "Martin K. Petersen"
CC: qla2xxx-upstr...@qlogic.com
CC: linux-scsi@vger.kernel.org
CC: Wen Yang
CC: linux-ke
PTR_ERR_OR_ZERO has implemented the same function, so use inlined function
instead of open coded equivalent.
Signed-off-by: Wen Yang
CC: Vinayak Holikatti
CC: "James E.J. Bottomley"
CC: "Martin K. Petersen"
CC: linux-scsi@vger.kernel.org
CC: Wen Yang
CC: linux-ke
printk, it's
useless to print the same lines frequently after all.
v2: fix some typos
v3: limit the print only for the same device
Suggested-by: Petr Mladek
Suggested-by: Sergey Senozhatsky
Signed-off-by: Wen Yang
Signed-off-by: Jiang Biao
Signed-off-by: Tan Hu
Reviewed-by: Bart Van Assch
printk, it's
useless to print the same lines frequently after all.
v2->v1: fix some typos
Suggested-by: Petr Mladek
Suggested-by: Sergey Senozhatsky
Signed-off-by: Wen Yang
Signed-off-by: Jiang Biao
Signed-off-by: Tan Hu
CC: BartVanAssche
CC: Petr Mladek
CC: Sergey Senozhatsky
CC:
x27;s
useless to print the same lines frequently after all.
Suggested-by: Petr Mladek
Suggested-by: Sergey Senozhatsky
Signed-off-by: Wen Yang
Signed-off-by: Jiang Biao
Signed-off-by: Tan Hu
CC: BartVanAssche
CC: Petr Mladek
CC: Sergey Senozhatsky
CC: Martin K. Petersen
CC: "
ng because of the slow serial and unstable disks in
such senario.
Signed-off-by: Wen Yang
Signed-off-by: Jiang Biao
---
drivers/scsi/scsi_lib.c | 18 --
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
index a86df9c..
13 matches
Mail list logo