* [KJ] [PATCH] scsi: Remove unnecessary cast of return value of
@ 2007-06-27 15:18 Suresh Jayaraman
2007-06-27 17:19 ` Henne
2007-06-27 18:26 ` [KJ] [PATCH] scsi: Remove unnecessary cast of return value Suresh Jayaraman
0 siblings, 2 replies; 3+ messages in thread
From: Suresh Jayaraman @ 2007-06-27 15:18 UTC (permalink / raw)
To: kernel-janitors
Remove unnecessary cast of return value of kmalloc() in the scsi
subsystem.
Signed-off-by: Suresh Jayaraman <sjayaraman@novell.com>
---
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index 9b3303b..f5cb42e 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -5258,8 +5258,7 @@ advansys_detect(struct scsi_host_template *tpnt)
* Allocate buffer carrier structures. The total size
* is about 4 KB, so allocate all at once.
*/
- carrp - (ADV_CARR_T *) kmalloc(ADV_CARRIER_BUFSIZE,
GFP_ATOMIC);
+ carrp = kmalloc(ADV_CARRIER_BUFSIZE, GFP_ATOMIC);
ASC_DBG1(1, "advansys_detect: carrp 0x%lx\n", (ulong)
carrp);
if (carrp = NULL) {
@@ -5275,8 +5274,7 @@ advansys_detect(struct scsi_host_template *tpnt)
for (req_cnt = adv_dvc_varp->max_host_qng;
req_cnt > 0; req_cnt--) {
- reqp = (adv_req_t *)
- kmalloc(sizeof(adv_req_t) * req_cnt,
GFP_ATOMIC);
+ reqp = kmalloc(sizeof(adv_req_t) * req_cnt,
GFP_ATOMIC);
ASC_DBG3(1,
"advansys_detect: reqp 0x%lx, req_cnt %d, bytes
%lu\n",
@@ -5299,8 +5297,7 @@ advansys_detect(struct scsi_host_template *tpnt)
boardp->adv_sgblkp = NULL;
for (sg_cnt = 0; sg_cnt < ADV_TOT_SG_BLOCK; sg_cnt++) {
- sgp = (adv_sgblk_t *)
- kmalloc(sizeof(adv_sgblk_t), GFP_ATOMIC);
+ sgp = kmalloc(sizeof(adv_sgblk_t), GFP_ATOMIC);
if (sgp = NULL) {
break;
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c
index 08060fb..7a49c71 100644
--- a/drivers/scsi/osst.c
+++ b/drivers/scsi/osst.c
@@ -5755,9 +5755,8 @@ static int osst_probe(struct device *dev)
/* if this is the first attach, build the infrastructure */
write_lock(&os_scsi_tapes_lock);
if (os_scsi_tapes = NULL) {
- os_scsi_tapes - (struct osst_tape **)kmalloc(osst_max_dev * sizeof(struct osst_tape
*),
- GFP_ATOMIC);
+ os_scsi_tapes = kmalloc(osst_max_dev *
+ sizeof(struct osst_tape *), GFP_ATOMIC);
if (os_scsi_tapes = NULL) {
write_unlock(&os_scsi_tapes_lock);
printk(KERN_ERR "osst :E: Unable to allocate array for OnStream SCSI
tapes.\n");
--
Suresh Jayaraman
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [KJ] [PATCH] scsi: Remove unnecessary cast of return value of
2007-06-27 15:18 [KJ] [PATCH] scsi: Remove unnecessary cast of return value of Suresh Jayaraman
@ 2007-06-27 17:19 ` Henne
2007-06-27 18:26 ` [KJ] [PATCH] scsi: Remove unnecessary cast of return value Suresh Jayaraman
1 sibling, 0 replies; 3+ messages in thread
From: Henne @ 2007-06-27 17:19 UTC (permalink / raw)
To: kernel-janitors
Hi Suresh,
thanks for the patch, but this one is malformed.
> - carrp > - (ADV_CARR_T *) kmalloc(ADV_CARRIER_BUFSIZE,
> GFP_ATOMIC);
> + carrp = kmalloc(ADV_CARRIER_BUFSIZE, GFP_ATOMIC);
GFP_ATOMIC); should be at the end of the 2nd line.
It seems that you Editor/Mailer isn't configured for sending patches,
or you edited the patch by hand (worse).
I'm not familiar with "Novell GroupWise Internet Agent", if thats your mailer.
But you may compare this patch in your outbox with the file you sent to find the one who's guilty ;)
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [KJ] [PATCH] scsi: Remove unnecessary cast of return value
2007-06-27 15:18 [KJ] [PATCH] scsi: Remove unnecessary cast of return value of Suresh Jayaraman
2007-06-27 17:19 ` Henne
@ 2007-06-27 18:26 ` Suresh Jayaraman
1 sibling, 0 replies; 3+ messages in thread
From: Suresh Jayaraman @ 2007-06-27 18:26 UTC (permalink / raw)
To: kernel-janitors
Hi Henne,
On Wed, 2007-06-27 at 17:24 +0000, Henne wrote:
> It seems that you Editor/Mailer isn't configured for sending patches,
> or you edited the patch by hand (worse).
> I'm not familiar with "Novell GroupWise Internet Agent", if thats your mailer.
> But you may compare this patch in your outbox with the file you sent to find the one who's guilty ;)
Mailer was the culprit. Evolution sucked.
Sorry about the mess, shouldn't have overlooked while inserting the
patch. Will resend the fixed one soon.
--
Suresh Jayaraman
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-06-27 18:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-27 15:18 [KJ] [PATCH] scsi: Remove unnecessary cast of return value of Suresh Jayaraman
2007-06-27 17:19 ` Henne
2007-06-27 18:26 ` [KJ] [PATCH] scsi: Remove unnecessary cast of return value Suresh Jayaraman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.