Here's a decent list of acceptable smoking woods from TVWBB. There are other lists out there on the web but this one is a good starting place.
http://virtualweberbullet.com/woods.html#appropriate
You will notice that walnut is listed as acceptable. Most folks will also tell you to go very easy on the amount you use as it imparts a strong smoke taste.