linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 01/25] r852: remove casts from void*
@ 2010-06-29 10:14 Kulikov Vasiliy
  2010-06-29 12:42 ` Dan Carpenter
  2010-07-13  9:57 ` Artem Bityutskiy
  0 siblings, 2 replies; 6+ messages in thread
From: Kulikov Vasiliy @ 2010-06-29 10:14 UTC (permalink / raw)
  To: Kernel Janitors
  Cc: David Woodhouse, Maxim Levitsky, Randy Dunlap, Stephen Rothwell,
	Tejun Heo, linux-mtd, linux-kernel

Remove unnesessary casts from void*.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
---
 drivers/mtd/nand/r852.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/r852.c b/drivers/mtd/nand/r852.c
index 78a4232..c0a9835 100644
--- a/drivers/mtd/nand/r852.c
+++ b/drivers/mtd/nand/r852.c
@@ -64,8 +64,8 @@ static inline void r852_write_reg_dword(struct r852_device *dev,
 /* returns pointer to our private structure */
 static inline struct r852_device *r852_get_dev(struct mtd_info *mtd)
 {
-	struct nand_chip *chip = (struct nand_chip *)mtd->priv;
-	return (struct r852_device *)chip->priv;
+	struct nand_chip *chip = mtd->priv;
+	return chip->priv;
 }
 
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 01/25] r852: remove casts from void*
  2010-06-29 10:14 [PATCH 01/25] r852: remove casts from void* Kulikov Vasiliy
@ 2010-06-29 12:42 ` Dan Carpenter
  2010-06-29 12:56   ` walter harms
  2010-06-29 15:28   ` Kulikov Vasiliy
  2010-07-13  9:57 ` Artem Bityutskiy
  1 sibling, 2 replies; 6+ messages in thread
From: Dan Carpenter @ 2010-06-29 12:42 UTC (permalink / raw)
  To: Kulikov Vasiliy; +Cc: Kernel Janitors, linux-kernel

On Tue, Jun 29, 2010 at 02:14:57PM +0400, Kulikov Vasiliy wrote:
> Remove unnesessary casts from void*.
> 

1) The subjects are not helpful.  This one should say something about
"mtd" but it doesn't.
2) These haven't been run through checkpatch.pl.  In fact, I can't be 
certain anyone looked at these patches when I see things like:

-    if((( lp = (struct wl_private *)dev->priv ) != NULL ) &&
-          !( lp->flags & WVLAN2_UIL_BUSY )) {
+    if((( lp = dev->priv ) != NULL ) &&
+       !( lp->flags & WVLAN2_UIL_BUSY )) {

On the recieving end, someone has to review every patch that gets merged.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 01/25] r852: remove casts from void*
  2010-06-29 12:42 ` Dan Carpenter
@ 2010-06-29 12:56   ` walter harms
  2010-06-29 15:28   ` Kulikov Vasiliy
  1 sibling, 0 replies; 6+ messages in thread
From: walter harms @ 2010-06-29 12:56 UTC (permalink / raw)
  To: Dan Carpenter, Kulikov Vasiliy, Kernel Janitors, linux-kernel



Dan Carpenter schrieb:
> On Tue, Jun 29, 2010 at 02:14:57PM +0400, Kulikov Vasiliy wrote:
>> Remove unnesessary casts from void*.
>>
> 
> 1) The subjects are not helpful.  This one should say something about
> "mtd" but it doesn't.
> 2) These haven't been run through checkpatch.pl.  In fact, I can't be 
> certain anyone looked at these patches when I see things like:
> 
> -    if((( lp = (struct wl_private *)dev->priv ) != NULL ) &&
> -          !( lp->flags & WVLAN2_UIL_BUSY )) {
> +    if((( lp = dev->priv ) != NULL ) &&
> +       !( lp->flags & WVLAN2_UIL_BUSY )) {
> 
> On the recieving end, someone has to review every patch that gets merged.
> 


same problem in drivers/scsi/sg.c but that would requiere a additional patch.

re,
 wh


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 01/25] r852: remove casts from void*
  2010-06-29 12:42 ` Dan Carpenter
  2010-06-29 12:56   ` walter harms
@ 2010-06-29 15:28   ` Kulikov Vasiliy
  2010-06-29 19:01     ` Dan Carpenter
  1 sibling, 1 reply; 6+ messages in thread
From: Kulikov Vasiliy @ 2010-06-29 15:28 UTC (permalink / raw)
  To: Dan Carpenter, Kernel Janitors, linux-kernel

> 1) The subjects are not helpful.  This one should say something about
> "mtd" but it doesn't.
ok

> 2) These haven't been run through checkpatch.pl.
Sorry for dummy question, but shouldn't code style be consistent?
Somebody who will see old code and patched code will see one line with
wrong-style code then one line with ok then one with wrong etc.
Imho it's better to fix style in one big patch.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 01/25] r852: remove casts from void*
  2010-06-29 15:28   ` Kulikov Vasiliy
@ 2010-06-29 19:01     ` Dan Carpenter
  0 siblings, 0 replies; 6+ messages in thread
From: Dan Carpenter @ 2010-06-29 19:01 UTC (permalink / raw)
  To: Kulikov Vasiliy; +Cc: Kernel Janitors, linux-kernel

On Tue, Jun 29, 2010 at 07:28:26PM +0400, Kulikov Vasiliy wrote:
> > 1) The subjects are not helpful.  This one should say something about
> > "mtd" but it doesn't.
> ok
> 
> > 2) These haven't been run through checkpatch.pl.
> Sorry for dummy question, but shouldn't code style be consistent?
> Somebody who will see old code and patched code will see one line with
> wrong-style code then one line with ok then one with wrong etc.
> Imho it's better to fix style in one big patch.

No.  If there's only one good line in a whole file, that's at least
better than nothing.

regards,
dan carpenter


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 01/25] r852: remove casts from void*
  2010-06-29 10:14 [PATCH 01/25] r852: remove casts from void* Kulikov Vasiliy
  2010-06-29 12:42 ` Dan Carpenter
@ 2010-07-13  9:57 ` Artem Bityutskiy
  1 sibling, 0 replies; 6+ messages in thread
From: Artem Bityutskiy @ 2010-07-13  9:57 UTC (permalink / raw)
  To: Kulikov Vasiliy
  Cc: Kernel Janitors, Randy Dunlap, Stephen Rothwell, Maxim Levitsky,
	linux-kernel, linux-mtd, Tejun Heo, David Woodhouse

On Tue, 2010-06-29 at 14:14 +0400, Kulikov Vasiliy wrote:
> Remove unnesessary casts from void*.
> 
> Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>

Pushed whole series to l2-mtd-2.6.git / master.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-13 10:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-29 10:14 [PATCH 01/25] r852: remove casts from void* Kulikov Vasiliy
2010-06-29 12:42 ` Dan Carpenter
2010-06-29 12:56   ` walter harms
2010-06-29 15:28   ` Kulikov Vasiliy
2010-06-29 19:01     ` Dan Carpenter
2010-07-13  9:57 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).