mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-08 03:38:18 +07:00
bridge: change "foo* bar" to "foo *bar"
"foo * bar" should be "foo *bar". Signed-off-by: Tan Xiaojun <tanxiaojun@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
31a5b837c2
commit
56b148eb94
@ -1001,7 +1001,7 @@ static struct nf_hook_ops br_nf_ops[] __read_mostly = {
|
|||||||
#ifdef CONFIG_SYSCTL
|
#ifdef CONFIG_SYSCTL
|
||||||
static
|
static
|
||||||
int brnf_sysctl_call_tables(struct ctl_table *ctl, int write,
|
int brnf_sysctl_call_tables(struct ctl_table *ctl, int write,
|
||||||
void __user * buffer, size_t * lenp, loff_t * ppos)
|
void __user *buffer, size_t *lenp, loff_t *ppos)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -209,21 +209,21 @@ static const struct brport_attribute *brport_attrs[] = {
|
|||||||
#define to_brport_attr(_at) container_of(_at, struct brport_attribute, attr)
|
#define to_brport_attr(_at) container_of(_at, struct brport_attribute, attr)
|
||||||
#define to_brport(obj) container_of(obj, struct net_bridge_port, kobj)
|
#define to_brport(obj) container_of(obj, struct net_bridge_port, kobj)
|
||||||
|
|
||||||
static ssize_t brport_show(struct kobject * kobj,
|
static ssize_t brport_show(struct kobject *kobj,
|
||||||
struct attribute * attr, char * buf)
|
struct attribute *attr, char *buf)
|
||||||
{
|
{
|
||||||
struct brport_attribute * brport_attr = to_brport_attr(attr);
|
struct brport_attribute *brport_attr = to_brport_attr(attr);
|
||||||
struct net_bridge_port * p = to_brport(kobj);
|
struct net_bridge_port *p = to_brport(kobj);
|
||||||
|
|
||||||
return brport_attr->show(p, buf);
|
return brport_attr->show(p, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t brport_store(struct kobject * kobj,
|
static ssize_t brport_store(struct kobject *kobj,
|
||||||
struct attribute * attr,
|
struct attribute *attr,
|
||||||
const char * buf, size_t count)
|
const char *buf, size_t count)
|
||||||
{
|
{
|
||||||
struct brport_attribute * brport_attr = to_brport_attr(attr);
|
struct brport_attribute *brport_attr = to_brport_attr(attr);
|
||||||
struct net_bridge_port * p = to_brport(kobj);
|
struct net_bridge_port *p = to_brport(kobj);
|
||||||
ssize_t ret = -EINVAL;
|
ssize_t ret = -EINVAL;
|
||||||
char *endp;
|
char *endp;
|
||||||
unsigned long val;
|
unsigned long val;
|
||||||
|
Loading…
Reference in New Issue
Block a user