Re: [PATCH 55] drivers/char/n_hdlc.c: kmalloc + memset conversion to kzalloc

2007-08-08 Thread Paul Fulghum

Krzysztof Halasa wrote:

Mariusz Kozlowski <[EMAIL PROTECTED]> writes:


Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]>

 drivers/char/n_hdlc.c | 27451 -> 27413 (-38 bytes)
 drivers/char/n_hdlc.o | 107068 -> 107088 (+20 bytes)


BTW: drivers/char/n_hdlc is a very different thing than these
in drivers/net/wan/ and I have no connection with it. Not sure
who is responsible, if anyone.


I am, my email is at the top of n_hdlc.c but there
is no maintainers entry.

--
Paul Fulghum
Microgate Systems, Ltd

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 55] drivers/char/n_hdlc.c: kmalloc + memset conversion to kzalloc

2007-08-08 Thread Krzysztof Halasa
Mariusz Kozlowski <[EMAIL PROTECTED]> writes:

> Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]>
>
>  drivers/char/n_hdlc.c | 27451 -> 27413 (-38 bytes)
>  drivers/char/n_hdlc.o | 107068 -> 107088 (+20 bytes)

BTW: drivers/char/n_hdlc is a very different thing than these
in drivers/net/wan/ and I have no connection with it. Not sure
who is responsible, if anyone.
-- 
Krzysztof Halasa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 55] drivers/char/n_hdlc.c: kmalloc + memset conversion to kzalloc

2007-08-08 Thread Mariusz Kozlowski
> > Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]>
> 
> NAK
> 
> > -   struct n_hdlc *n_hdlc = kmalloc(sizeof(*n_hdlc), GFP_KERNEL);
> > -
> > +   struct n_hdlc *n_hdlc;
> > +
> > +   n_hdlc = kzalloc(sizeof(*n_hdlc), GFP_KERNEL);
> 
> Change looks fine but please keep the original formatting style

Ok. Here it goes (based on 2.6.23-rc1-mm2).

Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]>

 drivers/char/n_hdlc.c | 27451 -> 27413 (-38 bytes)
 drivers/char/n_hdlc.o | 107068 -> 107088 (+20 bytes)

 drivers/char/n_hdlc.c |4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- linux-2.6.23-rc1-mm2-a/drivers/char/n_hdlc.c2007-08-01 
08:43:44.0 +0200
+++ linux-2.6.23-rc1-mm2-b/drivers/char/n_hdlc.c2007-08-08 
07:50:42.0 +0200
@@ -807,13 +807,11 @@ static struct n_hdlc *n_hdlc_alloc(void)
 {
struct n_hdlc_buf *buf;
int i;
-   struct n_hdlc *n_hdlc = kmalloc(sizeof(*n_hdlc), GFP_KERNEL);
+   struct n_hdlc *n_hdlc = kzalloc(sizeof(*n_hdlc), GFP_KERNEL);

if (!n_hdlc)
return NULL;

-   memset(n_hdlc, 0, sizeof(*n_hdlc));
-
n_hdlc_buf_list_init(_hdlc->rx_free_buf_list);
n_hdlc_buf_list_init(_hdlc->tx_free_buf_list);
n_hdlc_buf_list_init(_hdlc->rx_buf_list);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 55] drivers/char/n_hdlc.c: kmalloc + memset conversion to kzalloc

2007-08-08 Thread Mariusz Kozlowski
  Signed-off-by: Mariusz Kozlowski [EMAIL PROTECTED]
 
 NAK
 
  -   struct n_hdlc *n_hdlc = kmalloc(sizeof(*n_hdlc), GFP_KERNEL);
  -
  +   struct n_hdlc *n_hdlc;
  +
  +   n_hdlc = kzalloc(sizeof(*n_hdlc), GFP_KERNEL);
 
 Change looks fine but please keep the original formatting style

Ok. Here it goes (based on 2.6.23-rc1-mm2).

Signed-off-by: Mariusz Kozlowski [EMAIL PROTECTED]

 drivers/char/n_hdlc.c | 27451 - 27413 (-38 bytes)
 drivers/char/n_hdlc.o | 107068 - 107088 (+20 bytes)

 drivers/char/n_hdlc.c |4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

--- linux-2.6.23-rc1-mm2-a/drivers/char/n_hdlc.c2007-08-01 
08:43:44.0 +0200
+++ linux-2.6.23-rc1-mm2-b/drivers/char/n_hdlc.c2007-08-08 
07:50:42.0 +0200
@@ -807,13 +807,11 @@ static struct n_hdlc *n_hdlc_alloc(void)
 {
struct n_hdlc_buf *buf;
int i;
-   struct n_hdlc *n_hdlc = kmalloc(sizeof(*n_hdlc), GFP_KERNEL);
+   struct n_hdlc *n_hdlc = kzalloc(sizeof(*n_hdlc), GFP_KERNEL);

if (!n_hdlc)
return NULL;

-   memset(n_hdlc, 0, sizeof(*n_hdlc));
-
n_hdlc_buf_list_init(n_hdlc-rx_free_buf_list);
n_hdlc_buf_list_init(n_hdlc-tx_free_buf_list);
n_hdlc_buf_list_init(n_hdlc-rx_buf_list);
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 55] drivers/char/n_hdlc.c: kmalloc + memset conversion to kzalloc

2007-08-08 Thread Krzysztof Halasa
Mariusz Kozlowski [EMAIL PROTECTED] writes:

 Signed-off-by: Mariusz Kozlowski [EMAIL PROTECTED]

  drivers/char/n_hdlc.c | 27451 - 27413 (-38 bytes)
  drivers/char/n_hdlc.o | 107068 - 107088 (+20 bytes)

BTW: drivers/char/n_hdlc is a very different thing than these
in drivers/net/wan/ and I have no connection with it. Not sure
who is responsible, if anyone.
-- 
Krzysztof Halasa
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 55] drivers/char/n_hdlc.c: kmalloc + memset conversion to kzalloc

2007-08-08 Thread Paul Fulghum

Krzysztof Halasa wrote:

Mariusz Kozlowski [EMAIL PROTECTED] writes:


Signed-off-by: Mariusz Kozlowski [EMAIL PROTECTED]

 drivers/char/n_hdlc.c | 27451 - 27413 (-38 bytes)
 drivers/char/n_hdlc.o | 107068 - 107088 (+20 bytes)


BTW: drivers/char/n_hdlc is a very different thing than these
in drivers/net/wan/ and I have no connection with it. Not sure
who is responsible, if anyone.


I am, my email is at the top of n_hdlc.c but there
is no maintainers entry.

--
Paul Fulghum
Microgate Systems, Ltd

-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 55] drivers/char/n_hdlc.c: kmalloc + memset conversion to kzalloc

2007-07-31 Thread Alan Cox
On Tue, 31 Jul 2007 23:27:30 +0200
Mariusz Kozlowski <[EMAIL PROTECTED]> wrote:

> Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]>

NAK

> - struct n_hdlc *n_hdlc = kmalloc(sizeof(*n_hdlc), GFP_KERNEL);
> -
> + struct n_hdlc *n_hdlc;
> +
> + n_hdlc = kzalloc(sizeof(*n_hdlc), GFP_KERNEL);

Change looks fine but please keep the original formatting style
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 55] drivers/char/n_hdlc.c: kmalloc + memset conversion to kzalloc

2007-07-31 Thread Mariusz Kozlowski
Signed-off-by: Mariusz Kozlowski <[EMAIL PROTECTED]>

 drivers/char/n_hdlc.c | 27451 -> 27423 (-28 bytes)
 drivers/char/n_hdlc.o | 112528 -> 112516 (-12 bytes)

 drivers/char/n_hdlc.c |7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

--- linux-2.6.23-rc1-mm1-a/drivers/char/n_hdlc.c2007-07-26 
13:07:41.0 +0200
+++ linux-2.6.23-rc1-mm1-b/drivers/char/n_hdlc.c2007-07-31 
23:19:40.0 +0200
@@ -807,13 +807,12 @@ static struct n_hdlc *n_hdlc_alloc(void)
 {
struct n_hdlc_buf *buf;
int i;
-   struct n_hdlc *n_hdlc = kmalloc(sizeof(*n_hdlc), GFP_KERNEL);
-
+   struct n_hdlc *n_hdlc;
+
+   n_hdlc = kzalloc(sizeof(*n_hdlc), GFP_KERNEL);
if (!n_hdlc)
return NULL;

-   memset(n_hdlc, 0, sizeof(*n_hdlc));
-
n_hdlc_buf_list_init(_hdlc->rx_free_buf_list);
n_hdlc_buf_list_init(_hdlc->tx_free_buf_list);
n_hdlc_buf_list_init(_hdlc->rx_buf_list);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 55] drivers/char/n_hdlc.c: kmalloc + memset conversion to kzalloc

2007-07-31 Thread Mariusz Kozlowski
Signed-off-by: Mariusz Kozlowski [EMAIL PROTECTED]

 drivers/char/n_hdlc.c | 27451 - 27423 (-28 bytes)
 drivers/char/n_hdlc.o | 112528 - 112516 (-12 bytes)

 drivers/char/n_hdlc.c |7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

--- linux-2.6.23-rc1-mm1-a/drivers/char/n_hdlc.c2007-07-26 
13:07:41.0 +0200
+++ linux-2.6.23-rc1-mm1-b/drivers/char/n_hdlc.c2007-07-31 
23:19:40.0 +0200
@@ -807,13 +807,12 @@ static struct n_hdlc *n_hdlc_alloc(void)
 {
struct n_hdlc_buf *buf;
int i;
-   struct n_hdlc *n_hdlc = kmalloc(sizeof(*n_hdlc), GFP_KERNEL);
-
+   struct n_hdlc *n_hdlc;
+
+   n_hdlc = kzalloc(sizeof(*n_hdlc), GFP_KERNEL);
if (!n_hdlc)
return NULL;

-   memset(n_hdlc, 0, sizeof(*n_hdlc));
-
n_hdlc_buf_list_init(n_hdlc-rx_free_buf_list);
n_hdlc_buf_list_init(n_hdlc-tx_free_buf_list);
n_hdlc_buf_list_init(n_hdlc-rx_buf_list);
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 55] drivers/char/n_hdlc.c: kmalloc + memset conversion to kzalloc

2007-07-31 Thread Alan Cox
On Tue, 31 Jul 2007 23:27:30 +0200
Mariusz Kozlowski [EMAIL PROTECTED] wrote:

 Signed-off-by: Mariusz Kozlowski [EMAIL PROTECTED]

NAK

 - struct n_hdlc *n_hdlc = kmalloc(sizeof(*n_hdlc), GFP_KERNEL);
 -
 + struct n_hdlc *n_hdlc;
 +
 + n_hdlc = kzalloc(sizeof(*n_hdlc), GFP_KERNEL);

Change looks fine but please keep the original formatting style
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/