diff --git a/iaas/amazonec2/amazonec2.go b/iaas/amazonec2/amazonec2.go
index <HASH>..<HASH> 100644
--- a/iaas/amazonec2/amazonec2.go
+++ b/iaas/amazonec2/amazonec2.go
@@ -1,12 +1,11 @@
 package amazonec2
 
 import (
+	"context"
 	"encoding/json"
 	"fmt"
 	"io/ioutil"
 
-	"context"
-
 	"github.com/docker/machine/drivers/amazonec2"
 	"github.com/docker/machine/libmachine"
 	"github.com/docker/machine/libmachine/drivers/rpc"
@@ -145,8 +144,5 @@ func (p *Provider) CreateMachine() (machine *iaas.Machine, err error) {
 func (p *Provider) DeleteMachine() (err error) {
 	err = p.Host.Driver.Remove()
 	defer p.Client.Close()
-	if err != nil {
-		return
-	}
 	return
 }
iaas/amazonec2/amazonec2: Fixed context import and return into deleteMachine. (#<I>)