File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -1810,9 +1810,6 @@ static int kvm_xen_eventfd_update(struct kvm *kvm,
1810
1810
struct evtchnfd * evtchnfd ;
1811
1811
int ret ;
1812
1812
1813
- if (!port || port >= max_evtchn_port (kvm ))
1814
- return - EINVAL ;
1815
-
1816
1813
/* Protect writes to evtchnfd as well as the idr lookup. */
1817
1814
mutex_lock (& kvm -> lock );
1818
1815
evtchnfd = idr_find (& kvm -> arch .xen .evtchn_ports , port );
@@ -1858,12 +1855,9 @@ static int kvm_xen_eventfd_assign(struct kvm *kvm,
1858
1855
{
1859
1856
u32 port = data -> u .evtchn .send_port ;
1860
1857
struct eventfd_ctx * eventfd = NULL ;
1861
- struct evtchnfd * evtchnfd = NULL ;
1858
+ struct evtchnfd * evtchnfd ;
1862
1859
int ret = - EINVAL ;
1863
1860
1864
- if (!port || port >= max_evtchn_port (kvm ))
1865
- return - EINVAL ;
1866
-
1867
1861
evtchnfd = kzalloc (sizeof (struct evtchnfd ), GFP_KERNEL );
1868
1862
if (!evtchnfd )
1869
1863
return - ENOMEM ;
You can’t perform that action at this time.
0 commit comments