Skip to contentSkip to conversation

Remove unused XFRM_STATE_VOID and typos (net/xfrm.h)

PATCH In review Rami Rosen 2 participants 2 messages Jan 12, 2008 – Jan 13, 2008

Subsystems (3)
lore
Share & tools
lore

Rami Rosen

author
#0 lore raw

PATCH 1/1 Remove unused XFRM_STATE_VOID and typos (net/xfrm.h)

Hi,

In net/xfrm.h:
- remove XFRM_STATE_VOID (not in use)
- correct 3 typos

Regards,
Rami Rosen

include/net/xfrm.h +3 -4
index 860fe4a..432c5c8 100644
@@ -84,10 +84,10 @@ extern struct mutex xfrm_cfg_mutex;
                      |---. child .-> dst -. xfrm .-> xfrm_state #3
                                       |---. child .-> NULL
 
-   Bundles are cached at xrfm_policy struct (field ->bundles).
+   Bundles are cached at xfrm_policy struct (field ->bundles).
 
 
-   Resolution of xrfm_tmpl
+   Resolution of xfrm_tmpl
    -----------------------
    Template contains:
    1. ->mode		Mode: transport or tunnel
@@ -133,7 +133,7 @@ struct xfrm_state
 
 	u32			genid;
 
-	/* Key manger bits */
+	/* Key manager bits */
 	struct {
 		u8		state;
 		u8		dying;
@@ -217,7 +217,6 @@ struct xfrm_state
 #define XFRM_TIME_DEFER	1
 
 enum {
-	XFRM_STATE_VOID,
 	XFRM_STATE_ACQ,
 	XFRM_STATE_VALID,
 	XFRM_STATE_ERROR,
maintainer
#1 lore raw

From: "Rami Rosen" <[email protected]>
Date: Sat, 12 Jan 2008 13:37:34 +0200

Quoted 5 lines

In net/xfrm.h:
- remove XFRM_STATE_VOID (not in use)
- correct 3 typos

XFRM_STATE_VOID is there so that a freshly initialized object does not have a valid state. So we should not remove this.