History

net/atm: remove the atmdev_ops {get, set}sockopt methods

All implementations of these two methods are dummies that always return -EINVAL.

Christoph Hellwig committed 6 years ago

Commit a06d30a1 parent 089377b10 files · +2 −143Browse files

Showing the changes to include/linux (1 of 10 files). Show all

Unified · Split

include/linux/atmdev.h+0−9
@@ -176,11 +176,6 @@ struct atm_dev { · 175 unmodified lines
176176 #define ATM_OF_IMMED 1 /* Attempt immediate delivery */
177177 #define ATM_OF_INRATE 2 /* Attempt in-rate delivery */
178178
179−
180−/*
181− * ioctl, getsockopt, and setsockopt are optional and can be set to NULL.
182− */
183−
184179 struct atmdev_ops { /* only send is required */
185180 void (*dev_close)(struct atm_dev *dev);
186181 int (*open)(struct atm_vcc *vcc);
@@ -190,10 +185,6 @@ struct atmdev_ops { /* only send is required */ · 3 unmodified lines
190185 int (*compat_ioctl)(struct atm_dev *dev,unsigned int cmd,
191186 void __user *arg);
192187 #endif
193− int (*getsockopt)(struct atm_vcc *vcc,int level,int optname,
194− void __user *optval,int optlen);
195− int (*setsockopt)(struct atm_vcc *vcc,int level,int optname,
196− void __user *optval,unsigned int optlen);
197188 int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);
198189 int (*send_oam)(struct atm_vcc *vcc,void *cell,int flags);
199190 void (*phy_put)(struct atm_dev *dev,unsigned char value,